pub struct Mode { /* private fields */ }
Available on crate feature
progress
only.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 more