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,

§

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

§

type Into = StreamWithState<'f, A>

source§

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

§

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

§

type Into = Stream<'f, A>

source§

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

§

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

§

type Into = Stream<'f>

source§

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

§

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

§

type Into = S

source§

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

§

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

§

type Into = StreamWithState<'m, A>

source§

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

§

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

§

type Into = Stream<'m, A>

source§

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

§

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

§

type Into = Stream<'m>