| Crates.io | block2 |
| lib.rs | block2 |
| version | 0.6.1 |
| created_at | 2021-11-19 14:10:41.561599+00 |
| updated_at | 2025-04-19 20:14:33.415098+00 |
| description | Apple's C language extension of blocks |
| homepage | |
| repository | https://github.com/madsmtm/objc2 |
| max_upload_size | |
| id | 484467 |
| size | 127,769 |
block2Apple'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 for a more thorough overview.
This crate is part of the objc2 project,
see that for related crates.