File: README.md

package info (click to toggle)
rust-coreutils 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 505,620 kB
  • sloc: ansic: 103,594; asm: 28,570; sh: 8,910; python: 5,581; makefile: 472; cpp: 97; javascript: 72
file content (19 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# `block2`

[![Latest version](https://badgen.net/crates/v/block2)](https://crates.io/crates/block2)
[![License](https://badgen.net/badge/license/MIT/blue)](../../LICENSE.md)
[![Documentation](https://docs.rs/block2/badge.svg)](https://docs.rs/block2/)
[![CI](https://github.com/madsmtm/objc2/actions/workflows/ci.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/ci.yml)

Apple's C language extension of blocks in Rust.

This crate provides functionality for interacting with C blocks, which is the
C-equivalent of Rust's closures.

They are _technically_ not limited to only being used in Objective-C, though
in practice it's likely the only place you'll ever encounter them.

See [the docs](https://docs.rs/block2/) for a more thorough overview.

This crate is part of the [`objc2` project](https://github.com/madsmtm/objc2),
see that for related crates.