assert_exists

Crates.ioassert_exists
lib.rsassert_exists
version0.1.0
sourcesrc
created_at2023-08-11 16:52:23.919243
updated_at2023-08-11 16:52:23.919243
descriptionUseful 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.
homepagehttps://github.com/nic-obert/rust_assert_exists
repositoryhttps://github.com/nic-obert/rust_assert_exists
max_upload_size
id942122
size3,445
Nicholas Obert (nic-obert)

documentation

https://github.com/nic-obert/rust_assert_exists

README

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)

Commit count: 3

cargo fmt