[][src]Struct halt::Halt

pub struct Halt<T> { /* fields omitted */ }

A wrapper that makes it possible to pause, stop, and resume iterators, readers, and writers.


for i in halt::new(0..10) {


impl<T> Halt<T>[src]

pub fn remote(&self) -> Remote[src]

Returns a remote that allows for pausing, stopping, and resuming the T.

pub fn is_running(&self) -> bool[src]

Returns true if running.

pub fn is_paused(&self) -> bool[src]

Returns true if paused.

pub fn is_stopped(&self) -> bool[src]

Returns true if stopped.

pub fn get_ref(&self) -> &T[src]

Returns a reference to the inner T.

pub fn get_mut(&mut self) -> &mut T[src]

Returns a mutable reference to the inner T.

pub fn into_inner(self) -> T[src]

Returns the inner T.

Trait Implementations

impl<T: Debug> Debug for Halt<T>[src]

impl<T: Default> Default for Halt<T>[src]

impl<I: DoubleEndedIterator> DoubleEndedIterator for Halt<I>[src]

impl<A, I: Extend<A>> Extend<A> for Halt<I>[src]

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

impl<I: Iterator> Iterator for Halt<I>[src]

type Item = I::Item

The type of the elements being iterated over.

impl<R: Read> Read for Halt<R>[src]

impl<W: Write> Write for Halt<W>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Halt<T>

impl<T> Send for Halt<T> where
    T: Send

impl<T> Sync for Halt<T> where
    T: Sync

impl<T> Unpin for Halt<T> where
    T: Unpin

impl<T> !UnwindSafe for Halt<T>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<I> IntoIterator for I where
    I: Iterator

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.