pub struct Bytes;
Available on crate feature
progress
only.Expand description
A marker for formatting numbers as bytes in renderers.
Trait Implementations§
Source§impl DisplayValue for Bytes
impl DisplayValue for Bytes
Source§fn display_current_value(
&self,
w: &mut dyn Write,
value: usize,
_upper: Option<usize>,
) -> Result<(), Error>
fn display_current_value( &self, w: &mut dyn Write, value: usize, _upper: Option<usize>, ) -> Result<(), Error>
Display the absolute
value
representing the current progress of an operation and write it to w
. Read moreSource§fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize,
) -> Result<(), Error>
fn display_upper_bound( &self, w: &mut dyn Write, upper_bound: usize, _value: usize, ) -> Result<(), Error>
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 separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>,
) -> Result<(), Error>
fn separator( &self, w: &mut dyn Write, _value: usize, _upper: Option<usize>, ) -> Result<(), Error>
Emit a token to separate two values. Read more
Source§fn display_percentage(
&self,
w: &mut dyn Write,
percentage: f64,
) -> Result<(), Error>
fn display_percentage( &self, w: &mut dyn Write, percentage: f64, ) -> Result<(), Error>
Emit
percentage
to w
.Source§fn display_throughput(
&self,
w: &mut dyn Write,
throughput: &Throughput,
) -> Result<(), Error>
fn display_throughput( &self, w: &mut dyn Write, throughput: &Throughput, ) -> Result<(), Error>
Emit the
throughput
of an operation to w
.Source§impl Ord for Bytes
impl Ord for Bytes
Source§impl PartialOrd for Bytes
impl PartialOrd for Bytes
impl Copy for Bytes
impl Eq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
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<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