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 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 fst::raw::StreamBuilder<'f, A>

Source§

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

Source§

type Into = Stream<'f, A>

Source§

impl<'a, 'f, D: AsRef<[u8]>> IntoStreamer<'a> for &'f Fst<D>

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 fst::inner_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 fst::inner_map::StreamBuilder<'m, A>

Source§

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

Source§

type Into = Stream<'m, A>

Source§

impl<'m, 'a, D: AsRef<[u8]>> IntoStreamer<'a> for &'m Map<D>

Source§

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

Source§

type Into = Stream<'m>

Source§

impl<'s, 'a, A: 'a + Automaton> IntoStreamer<'a> for fst::inner_set::StreamWithStateBuilder<'s, A>
where A::State: Clone,

Source§

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

Source§

type Into = StreamWithState<'s, A>

Source§

impl<'s, 'a, A: Automaton> IntoStreamer<'a> for fst::inner_set::StreamBuilder<'s, A>

Source§

type Item = &'a [u8]

Source§

type Into = Stream<'s, A>

Source§

impl<'s, 'a, D: AsRef<[u8]>> IntoStreamer<'a> for &'s Set<D>

Source§

type Item = &'a [u8]

Source§

type Into = Stream<'s>