Struct git_features::progress::unit::Bytes [−][src]
pub struct Bytes;
A marker for formatting numbers as bytes in renderers.
Trait Implementations
impl DisplayValue for Bytes[src]
impl DisplayValue for Bytes[src]pub fn display_current_value(
&self,
w: &mut dyn Write,
value: usize,
_upper: Option<usize>
) -> Result<(), Error>[src]
pub fn display_current_value(
&self,
w: &mut dyn Write,
value: usize,
_upper: Option<usize>
) -> Result<(), Error>[src]Display the absolute value representing the current progress of an operation and write it to w. Read more
pub fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize
) -> Result<(), Error>[src]
pub fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize
) -> Result<(), Error>[src]Emit the upper_bound to w. Read more
pub fn display_unit(
&self,
_w: &mut dyn Write,
_value: usize
) -> Result<(), Error>[src]
pub fn display_unit(
&self,
_w: &mut dyn Write,
_value: usize
) -> Result<(), Error>[src]Emit the unit of value to w. Read more
fn separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>[src]
fn separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>[src]Emit a token to separate two values. Read more
fn display_percentage(
&self,
w: &mut dyn Write,
percentage: f64
) -> Result<(), Error>[src]
fn display_percentage(
&self,
w: &mut dyn Write,
percentage: f64
) -> Result<(), Error>[src]Emit percentage to w.
fn display_throughput(
&self,
w: &mut dyn Write,
throughput: Throughput
) -> Result<(), Error>[src]
fn display_throughput(
&self,
w: &mut dyn Write,
throughput: Throughput
) -> Result<(), Error>[src]Emit the throughput of an operation to w.
impl Ord for Bytes[src]
impl Ord for Bytes[src]impl PartialOrd<Bytes> for Bytes[src]
impl PartialOrd<Bytes> for Bytes[src]pub fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>[src]
pub fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for Bytes[src]
impl Eq for Bytes[src]
impl StructuralEq for Bytes[src]
impl StructuralPartialEq for Bytes[src]
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<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more