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.

Implementations

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

pub fn into_strs(self) -> Result<Vec<String>>[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.

pub fn into_bytes(self) -> Vec<Vec<u8>>[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]

type Item = &'a [u8]

The type of the item emitted by this stream.

fn next(&'a mut self) -> Option<&'a [u8]>[src]

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

Auto Trait Implementations

impl<'s, A> RefUnwindSafe for Stream<'s, A> where
    A: RefUnwindSafe,
    <A as Automaton>::State: RefUnwindSafe

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

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

impl<'s, A> Unpin for Stream<'s, A> where
    A: Unpin,
    <A as Automaton>::State: Unpin

impl<'s, A> UnwindSafe for Stream<'s, A> where
    A: UnwindSafe,
    <A as Automaton>::State: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.