tantivy_fst

Trait IntoStreamer

Source
pub trait IntoStreamer<'a> {
    type Item: 'a;
    type Into: Streamer<'a, Item = Self::Item>;

    // Required method
    fn into_stream(self) -> Self::Into;
}
Expand description

IntoStreamer describes types that can be converted to streams.

This is analogous to the IntoIterator trait for Iterator in std::iter.

Required Associated Types§

Source

type Item: 'a

The type of the item emitted by the stream.

Source

type Into: Streamer<'a, Item = Self::Item>

The type of the stream to be constructed.

Required Methods§

Source

fn into_stream(self) -> Self::Into

Construct a stream from Self.

Implementors§

Source§

impl<'a, 'f, A: 'a + Automaton> IntoStreamer<'a> for tantivy_fst::raw::StreamWithStateBuilder<'f, A>
where A::State: Clone,

Source§

type Item = (&'a [u8], Output, <A as Automaton>::State)

Source§

type Into = StreamWithState<'f, A>

Source§

impl<'a, 'f, A: Automaton> IntoStreamer<'a> for tantivy_fst::raw::StreamBuilder<'f, A>

Source§

type Item = (&'a [u8], Output)

Source§

type Into = Stream<'f, A>

Source§

impl<'a, 'f, Data> IntoStreamer<'a> for &'f Fst<Data>
where Data: Deref<Target = [u8]>,

Source§

type Item = (&'a [u8], Output)

Source§

type Into = Stream<'f>

Source§

impl<'a, S: Streamer<'a>> IntoStreamer<'a> for S

Source§

type Item = <S as Streamer<'a>>::Item

Source§

type Into = S

Source§

impl<'m, 'a, A: 'a + Automaton> IntoStreamer<'a> for tantivy_fst::map::StreamWithStateBuilder<'m, A>
where A::State: Clone,

Source§

type Item = (&'a [u8], u64, <A as Automaton>::State)

Source§

type Into = StreamWithState<'m, A>

Source§

impl<'m, 'a, A: Automaton> IntoStreamer<'a> for tantivy_fst::map::StreamBuilder<'m, A>

Source§

type Item = (&'a [u8], u64)

Source§

type Into = Stream<'m, A>

Source§

impl<'m, 'a, Data: Deref<Target = [u8]>> IntoStreamer<'a> for &'m Map<Data>

Source§

type Item = (&'a [u8], u64)

Source§

type Into = Stream<'m>