pub trait IntoNameIter<'a> {
type Item: Into<AutoName<'a>>;
type IntoIter: Iterator<Item = Self::Item>;
// Required method
fn into_name_iter(&'a self) -> Self::IntoIter;
}
Expand description
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.
Required Associated Types§
Required Methods§
Sourcefn into_name_iter(&'a self) -> Self::IntoIter
fn into_name_iter(&'a self) -> Self::IntoIter
Borrow a iterator over the names from this type