Struct git_features::progress::unit::Range [−][src]
pub struct Range {
pub name: &'static str,
}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
impl DisplayValue for Range[src]
impl DisplayValue for Range[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 separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>[src]
pub fn separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>[src]Emit a token to separate two values. 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 display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize
) -> Result<(), Error>[src]
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
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 Range[src]
impl Ord for Range[src]impl PartialOrd<Range> for Range[src]
impl PartialOrd<Range> for Range[src]pub fn partial_cmp(&self, other: &Range) -> Option<Ordering>[src]
pub fn partial_cmp(&self, other: &Range) -> 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 Range[src]
impl Eq for Range[src]
impl StructuralEq for Range[src]
impl StructuralPartialEq for Range[src]
Auto Trait Implementations
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
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