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)