[−][src]Struct git_features::progress::unit::display::Mode
A way to display a Unit.
Implementations
impl Mode[src]
initialization and modification
pub fn with_percentage() -> Mode[src]
Create a mode instance with percentage only.
pub fn with_throughput() -> Mode[src]
Create a mode instance with throughput only.
pub fn and_percentage(self) -> Mode[src]
Turn on percentage display on the current instance.
pub fn and_throughput(self) -> Mode[src]
Turn on throughput display on the current instance.
pub fn show_before_value(self) -> Mode[src]
Change the display location to show up in front of the value.
Trait Implementations
impl Clone for Mode[src]
impl Copy for Mode[src]
impl Debug for Mode[src]
impl Eq for Mode[src]
impl Ord for Mode[src]
pub fn cmp(&self, other: &Mode) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Mode> for Mode[src]
impl PartialOrd<Mode> for Mode[src]
pub fn partial_cmp(&self, other: &Mode) -> Option<Ordering>[src]
pub fn lt(&self, other: &Mode) -> bool[src]
pub fn le(&self, other: &Mode) -> bool[src]
pub fn gt(&self, other: &Mode) -> bool[src]
pub fn ge(&self, other: &Mode) -> bool[src]
impl StructuralEq for Mode[src]
impl StructuralPartialEq for Mode[src]
Auto Trait Implementations
impl RefUnwindSafe for Mode[src]
impl Send for Mode[src]
impl Sync for Mode[src]
impl Unpin for Mode[src]
impl UnwindSafe for Mode[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,