assert_exists 0.1.0

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.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 3.13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • nic-obert/rs-assert-exists
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nic-obert

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)