Struct fst::raw::Stream

source ·
pub struct Stream<'f, A = AlwaysMatch>where
    A: Automaton,
{ /* private fields */ }
Expand description

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.

Implementations

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

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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.