Trait ns_router::IntoNameIter [] [src]

pub trait IntoNameIter<'a> {
    type Item: Into<AutoName<'a>>;
    type IntoIter: Iterator<Item = Self::Item>;
    fn into_name_iter(&'a self) -> Self::IntoIter;
}

A helper trait to convert anything (yielded by a Stream) into name

The idea is that if you have a Stream<Item=Vec<String>> or vec of other things that are convertible into an AutoName you can pass this stream without copying anything. This is identical to IntoIterator but works by borrowing object.

Used for subscribe_stream method.

Associated Types

Item type, must be convertible into AutoName

Iterator type

Required Methods

Borrow a iterator over the names from this type

Implementors