Struct git_repository::progress::unit::Bytes
source · pub struct Bytes;
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 PartialEq<Bytes> for Bytes
impl PartialEq<Bytes> for Bytes
source§impl PartialOrd<Bytes> for Bytes
impl PartialOrd<Bytes> for Bytes
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 Bytes
impl Eq for Bytes
impl StructuralEq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
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