Struct abstutil::time::Progress[][src]

struct Progress {
    label: String,
    processed_items: usize,
    total_items: usize,
    started_at: Instant,
    last_printed_at: Instant,
    first_update: bool,
}

Fields

label: Stringprocessed_items: usizetotal_items: usizestarted_at: Instantlast_printed_at: Instantfirst_update: bool

Implementations

impl Progress[src]

fn new(label: String, total_items: usize) -> Progress[src]

fn next<'a>(
    &mut self,
    maybe_sink: &mut Option<Box<dyn TimerSink + 'a>>
) -> Option<(f64, String)>
[src]

fn cancel_iter_early(&mut self) -> f64[src]

Trait Implementations

impl Debug for Progress[src]

Auto Trait Implementations

impl RefUnwindSafe for Progress

impl Send for Progress

impl Sync for Progress

impl Unpin for Progress

impl UnwindSafe for Progress

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.