[][src]Struct shelp::ReplIter

pub struct ReplIter<L: LangInterface> { /* fields omitted */ }

A wrapper over Repl which allows it to be used as a Iterator.

Although using an iterator is easier, errors are discarded and None is returned. For this reason, it may be beneficial to use the Repl directly.

Implementations

impl<L: LangInterface> ReplIter<L>[src]

pub fn new(repl: Repl<L>, color: Color) -> Self[src]

Create a iterator for a Repl

pub fn set_exit_keyword(&mut self, exit_keyword: &'static str)[src]

Sets the exit keyword. If you don't want any exit keyword, set it to an empty string

pub fn set_clear_keyword(&mut self, clear_keyword: &'static str)[src]

Sets the clear keyword. If you don't want any clear keyword, set it to an empty string

Trait Implementations

impl<L: LangInterface> Iterator for ReplIter<L>[src]

type Item = String

The type of the elements being iterated over.

Auto Trait Implementations

impl<L> !RefUnwindSafe for ReplIter<L>[src]

impl<L> Send for ReplIter<L> where
    L: Send
[src]

impl<L> !Sync for ReplIter<L>[src]

impl<L> Unpin for ReplIter<L> where
    L: Unpin
[src]

impl<L> UnwindSafe for ReplIter<L> where
    L: UnwindSafe
[src]

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<I> IntoIterator for I where
    I: Iterator
[src]

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>, 
[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.