IterTime

Trait IterTime 

Source
pub trait IterTime {
    // Required method
    fn preferred_iter_time(&self) -> Duration;

    // Provided method
    fn interval(&self, total_wait: &Duration) -> Duration
       where for<'t> &'t Self: IterTime { ... }
}

Required Methods§

Provided Methods§

Source

fn interval(&self, total_wait: &Duration) -> Duration
where for<'t> &'t Self: IterTime,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IterTime for Duration

Source§

fn preferred_iter_time(&self) -> Duration

Source§

fn interval(&self, total_wait: &Duration) -> Duration
where for<'t> &'t Self: IterTime,

Source§

impl<T: IterTime> IterTime for &T

Source§

fn preferred_iter_time(&self) -> Duration

Source§

fn interval(&self, total_wait: &Duration) -> Duration
where for<'t> &'t Self: IterTime,

Implementors§