Crates.io | assert_exists |
lib.rs | assert_exists |
version | 0.1.0 |
source | src |
created_at | 2023-08-11 16:52:23.919243 |
updated_at | 2023-08-11 16:52:23.919243 |
description | Useful macro to assert that a certain symbol exists in the source code. This is useful to strictly couple otherwise loosely coupled functions and symbols that depend on each other. |
homepage | https://github.com/nic-obert/rust_assert_exists |
repository | https://github.com/nic-obert/rust_assert_exists |
max_upload_size | |
id | 942122 |
size | 3,445 |
Useful macro to assert that a certain symbol exists in the source code.
This is useful to strictly couple otherwise loosely coupled functions and symbols that depend on each other.
fn prepare_for_my_variant() {
assert_exists!(MyEnum::MyVariant);
// ...
}
Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)