Function halt::new

source · []
pub fn new<T>(inner: T) -> Halt<T>Notable traits for Halt<I>impl<I: Iterator> Iterator for Halt<I>    type Item = I::Item;impl<R: Read> Read for Halt<R>impl<W: Write> Write for Halt<W>
Expand description

Returns a new Halt wrapper around T.

Examples

let _ = halt::new(0..10);