docs.rs failed to build bounded-integer-plugin-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Provides the procedural macro bounded_integer!
for generating enums for the
bounded-integer
crate.
Syntax
The syntax parsed by bounded_integer!
is roughly equivalent to the following
macro_rules!
-like matcher.
$(#[$attr:meta])*
$(pub)? enum $name:ident: $repr:ident { $min:expr...$max:expr }
Which expands to the following:
$(#[$attr:meta])*
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[repr($repr)]
$(pub)? enum $name { ... }
bounded_integer_impls!($name, $repr, ..., ...);
Where ...
are variants of the form ...N1, Z0, P1...
.
Note that the bounded_integer_impls!
macro is provided by the bounded-integer
crate.