Struct fst::raw::Stream[][src]

pub struct Stream<'f, A = AlwaysMatch> where
    A: Automaton
{ /* fields omitted */ }

A lexicographically ordered stream of key-value pairs from an fst.

The A type parameter corresponds to an optional automaton to filter the stream. By default, no filtering is done.

The 'f lifetime parameter refers to the lifetime of the underlying fst.

Methods

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

Convert this stream into a vector of byte strings and outputs.

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

Convert this stream into a vector of Unicode strings and outputs.

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.

Convert this stream into a vector of byte strings.

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

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.

Convert this stream into a vector of outputs.

Trait Implementations

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

The type of the item emitted by this stream.

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

Auto Trait Implementations

impl<'f, A> Send for Stream<'f, A> where
    A: Send,
    <A as Automaton>::State: Send

impl<'f, A> Sync for Stream<'f, A> where
    A: Sync,
    <A as Automaton>::State: Sync