#[non_exhaustive]pub enum PrefixMode {
None,
Si,
SiAndBinary,
}Expand description
Which prefixes a unit accepts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No prefixes (for example min, psi, degC).
Si
The 24 SI prefixes from quecto to quetta.
SiAndBinary
SI and binary prefixes (Ki, Mi, …), for information units.
Implementations§
Source§impl PrefixMode
impl PrefixMode
Trait Implementations§
Source§impl Clone for PrefixMode
impl Clone for PrefixMode
impl Copy for PrefixMode
Source§impl Debug for PrefixMode
impl Debug for PrefixMode
Source§impl Default for PrefixMode
impl Default for PrefixMode
impl Eq for PrefixMode
Source§impl Hash for PrefixMode
impl Hash for PrefixMode
Source§impl PartialEq for PrefixMode
impl PartialEq for PrefixMode
impl StructuralPartialEq for PrefixMode
Auto Trait Implementations§
impl Forget for PrefixMode
impl Freeze for PrefixMode
impl RefUnwindSafe for PrefixMode
impl Send for PrefixMode
impl Sync for PrefixMode
impl Unpin for PrefixMode
impl UnsafeUnpin for PrefixMode
impl UnwindSafe for PrefixMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more