pub trait Unit {
// Required method
fn unit() -> Self;
}Expand description
Unit returns the natural “one” value for a given type. This in turn is used to increment and decrement values within a range to provide an iterator.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.