#[non_exhaustive]pub enum DisplayScale {
Auto,
Base,
Kilo,
Mega,
Giga,
Tera,
Peta,
Exa,
}Expand description
Scale used by DisplayOptions.
See Display for examples.
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.
Auto
Select the display scale automatically.
Base
Format values in the base unit without a prefix.
Kilo
Format values in kilo units.
Mega
Format values in mega units.
Giga
Format values in giga units.
Tera
Format values in tera units.
Peta
Format values in peta units.
Exa
Format values in exa units.
Trait Implementations§
Source§impl Clone for DisplayScale
impl Clone for DisplayScale
Source§fn clone(&self) -> DisplayScale
fn clone(&self) -> DisplayScale
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DisplayScale
Source§impl Debug for DisplayScale
impl Debug for DisplayScale
impl Eq for DisplayScale
Source§impl PartialEq for DisplayScale
impl PartialEq for DisplayScale
Source§fn eq(&self, other: &DisplayScale) -> bool
fn eq(&self, other: &DisplayScale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DisplayScale
Auto Trait Implementations§
impl Freeze for DisplayScale
impl RefUnwindSafe for DisplayScale
impl Send for DisplayScale
impl Sync for DisplayScale
impl Unpin for DisplayScale
impl UnsafeUnpin for DisplayScale
impl UnwindSafe for DisplayScale
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