pub unsafe trait Zero {
// Required method
fn is_zero(&self) -> bool;
}Expand description
A minimal alternative to the Zero trait from num-traits, for use in
NulTerminated.
May be replaced with the one from num-traits at a later time if so desired.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".