[−][src]Struct git_features::progress::DoOrDiscard
An implementation of Progress which can be created easily from Option<impl Progress>.
Implementations
impl<T> DoOrDiscard<T> where
T: Progress, [src]
T: Progress,
pub fn into_inner(self) -> Option<T>[src]
Obtain either the original Progress implementation or None.
pub fn take(&mut self) -> Option<T>[src]
Trait Implementations
impl<T> From<Option<T>> for DoOrDiscard<T> where
T: Progress, [src]
T: Progress,
pub fn from(p: Option<T>) -> DoOrDiscard<T>[src]
impl<T> Progress for DoOrDiscard<T> where
T: Progress, [src]
T: Progress,
type SubProgress = DoOrDiscard<<T as Progress>::SubProgress>
The type of progress returned by add_child().
pub fn add_child(
&mut self,
name: impl Into<String>
) -> <DoOrDiscard<T> as Progress>::SubProgress[src]
&mut self,
name: impl Into<String>
) -> <DoOrDiscard<T> as Progress>::SubProgress
pub fn init(&mut self, max: Option<usize>, unit: Option<Unit>)[src]
pub fn set(&mut self, step: usize)[src]
pub fn unit(&self) -> Option<Unit>[src]
pub fn max(&self) -> Option<usize>[src]
pub fn step(&self) -> usize[src]
pub fn inc_by(&mut self, step: usize)[src]
pub fn set_name(&mut self, name: impl Into<String>)[src]
pub fn name(&self) -> Option<String>[src]
pub fn message(&mut self, level: MessageLevel, message: impl Into<String>)[src]
pub fn inc(&mut self)[src]
pub fn info(&mut self, message: impl Into<String>)[src]
pub fn done(&mut self, message: impl Into<String>)[src]
pub fn fail(&mut self, message: impl Into<String>)[src]
pub fn show_throughput(&mut self, start: Instant)[src]
pub fn show_throughput_with(&mut self, start: Instant, step: usize, unit: Unit)[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for DoOrDiscard<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for DoOrDiscard<T> where
T: Send, [src]
T: Send,
impl<T> Sync for DoOrDiscard<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for DoOrDiscard<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for DoOrDiscard<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
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, 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>,