pub struct Mode { /* private fields */ }
Expand description
A way to display a Unit.
Implementations§
source§impl Mode
impl Mode
initialization and modification
sourcepub fn with_percentage() -> Mode
pub fn with_percentage() -> Mode
Create a mode instance with percentage only.
sourcepub fn with_throughput() -> Mode
pub fn with_throughput() -> Mode
Create a mode instance with throughput only.
sourcepub fn and_percentage(self) -> Mode
pub fn and_percentage(self) -> Mode
Turn on percentage display on the current instance.
sourcepub fn and_throughput(self) -> Mode
pub fn and_throughput(self) -> Mode
Turn on throughput display on the current instance.
sourcepub fn show_before_value(self) -> Mode
pub fn show_before_value(self) -> Mode
Change the display location to show up in front of the value.
Trait Implementations§
source§impl Ord for Mode
impl Ord for Mode
source§impl PartialEq<Mode> for Mode
impl PartialEq<Mode> for Mode
source§impl PartialOrd<Mode> for Mode
impl PartialOrd<Mode> for Mode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more