1 unstable release
0.1.0 | Aug 11, 2023 |
---|
#26 in #depend
3KB
assert_exists
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.
Usage
fn prepare_for_my_variant() {
assert_exists!(MyEnum::MyVariant);
// ...
}
License
Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)