pub enum Scale<F: PrefixFamily> {
Auto,
Native,
Fixed(F::Prefix),
}
Expand description
A scale
Variants§
Auto
Auto-scale to the best-fitting prefix.
Native
Display the number in its native scale.
Fixed(F::Prefix)
Use a specific fixed prefix.
Trait Implementations§
impl<F: Copy + PrefixFamily> Copy for Scale<F>
impl<F: Eq + PrefixFamily> Eq for Scale<F>
impl<F: PrefixFamily> StructuralPartialEq for Scale<F>
Auto Trait Implementations§
impl<F> Freeze for Scale<F>
impl<F> RefUnwindSafe for Scale<F>
impl<F> Send for Scale<F>
impl<F> Sync for Scale<F>
impl<F> Unpin for Scale<F>
impl<F> UnwindSafe for Scale<F>
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