pub struct Stream<'s, A = AlwaysMatch>(Stream<'s, A>)
where
A: Automaton;
Expand description
A lexicographically ordered stream of keys from a set.
The A
type parameter corresponds to an optional automaton to filter
the stream. By default, no filtering is done.
The 's
lifetime parameter refers to the lifetime of the underlying set.
Tuple Fields§
§0: Stream<'s, A>
Implementations§
Source§impl<'s, A: Automaton> Stream<'s, A>
impl<'s, A: Automaton> Stream<'s, A>
Sourcepub fn into_strs(self) -> Result<Vec<String>>
pub fn into_strs(self) -> Result<Vec<String>>
Convert this stream into a vector of Unicode strings.
If any key is not valid UTF-8, then iteration on the stream is stopped and a UTF-8 decoding error is returned.
Note that this creates a new allocation for every key in the stream.
Sourcepub fn into_bytes(self) -> Vec<Vec<u8>>
pub fn into_bytes(self) -> Vec<Vec<u8>>
Convert this stream into a vector of byte strings.
Note that this creates a new allocation for every key in the stream.
Trait Implementations§
Auto Trait Implementations§
impl<'s, A> Freeze for Stream<'s, A>where
A: Freeze,
impl<'s, A> RefUnwindSafe for Stream<'s, A>
impl<'s, A> Send for Stream<'s, A>
impl<'s, A> Sync for Stream<'s, A>
impl<'s, A> Unpin for Stream<'s, A>
impl<'s, A> UnwindSafe for Stream<'s, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more