Trait UntilExt

Source
pub trait UntilExt<T: Iterator> {
    // Provided methods
    fn until(self, until: Instant) -> Until<Self> 
       where Self: Sized { ... }
    fn do_for(self, until: Duration) -> Until<Self> 
       where Self: Sized { ... }
}

Provided Methods§

Source

fn until(self, until: Instant) -> Until<Self>
where Self: Sized,

Using this the iter will continue till the specified time has passed or the internal iter is empty

Source

fn do_for(self, until: Duration) -> Until<Self>
where Self: Sized,

Using this the iter will continue for the specified time or until the internal iter is empty

Implementors§

Source§

impl<I: Iterator> UntilExt<I> for I