Enum si_scale::prefix::constraint::Constraint [−][src]
Expand description
Specifies a constraint on the SI Prefix.
Variants
Allows all prefixes from Yocto to Yotta.
Note: having a None variant proves ergonomic
in the context of this library.
Only allows the Unit prefix, effectively preventing scaling.
Only allows prefixes from Unit to Yotta.
Only allows prefixes from Yocto to Unit.
Only allows the specified prefixes (should be sorted in ascending exponent order).
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
Blanket Implementations
Mutably borrows from an owned value. Read more