pub struct Range {
pub name: &'static str,
}Expand description
A helper for formatting numbers representing ranges in renderers as in 2 of 5 steps.
Fields§
§name: &'static strThe name of the unit to be appended to the range.
Implementations§
Trait Implementations§
Source§impl DisplayValue for Range
impl DisplayValue for Range
Source§fn display_current_value(
&self,
w: &mut dyn Write,
value: Step,
_upper: Option<Step>,
) -> Result
fn display_current_value( &self, w: &mut dyn Write, value: Step, _upper: Option<Step>, ) -> Result
Display the absolute
value representing the current progress of an operation and write it to w. Read moreSource§fn separator(
&self,
w: &mut dyn Write,
_value: Step,
_upper: Option<Step>,
) -> Result
fn separator( &self, w: &mut dyn Write, _value: Step, _upper: Option<Step>, ) -> Result
Emit a token to separate two values. Read more
Source§fn dyn_hash(&self, state: &mut dyn Hasher)
fn dyn_hash(&self, state: &mut dyn Hasher)
A way to hash our state without using generics. Read more
Source§fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: Step,
_value: Step,
) -> Result
fn display_upper_bound( &self, w: &mut dyn Write, upper_bound: Step, _value: Step, ) -> Result
Source§fn display_percentage(&self, w: &mut dyn Write, percentage: f64) -> Result
fn display_percentage(&self, w: &mut dyn Write, percentage: f64) -> Result
Emit
percentage to w.Source§fn display_throughput(
&self,
w: &mut dyn Write,
throughput: &Throughput,
) -> Result
fn display_throughput( &self, w: &mut dyn Write, throughput: &Throughput, ) -> Result
Emit the
throughput of an operation to w.Source§impl Ord for Range
impl Ord for Range
Source§impl PartialOrd for Range
impl PartialOrd for Range
impl Copy for Range
impl Eq for Range
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more