Struct fst::set::Stream [] [src]

pub struct Stream<'s, A = AlwaysMatch>(_)
where
    A: Automaton
;

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.

Methods

impl<'s, A: Automaton> Stream<'s, A>
[src]

[src]

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.

[src]

Convert this stream into a vector of byte strings.

Note that this creates a new allocation for every key in the stream.

Trait Implementations

impl<'a, 's, A: Automaton> Streamer<'a> for Stream<'s, A>
[src]

The type of the item emitted by this stream.

[src]

Emits the next element in this stream, or None to indicate the stream has been exhausted. Read more