Trait fst::IntoStreamer [−][src]
pub trait IntoStreamer<'a> {
type Item: 'a;
type Into: Streamer<'a, Item = Self::Item>;
fn into_stream(self) -> Self::Into;
}IntoStreamer describes types that can be converted to streams.
This is analogous to the IntoIterator trait for Iterator in
std::iter.
Associated Types
type Item: 'a
The type of the item emitted by the stream.
type Into: Streamer<'a, Item = Self::Item>
The type of the stream to be constructed.
Required Methods
fn into_stream(self) -> Self::Into
Construct a stream from Self.
Implementors
impl<'m, 'a> IntoStreamer<'a> for &'m Map type Item = (&'a [u8], u64); type Into = Stream<'m>;impl<'m, 'a, A: Automaton> IntoStreamer<'a> for fst::map::StreamBuilder<'m, A> type Item = (&'a [u8], u64); type Into = Stream<'m, A>;impl<'a, 'f> IntoStreamer<'a> for &'f Fst type Item = (&'a [u8], Output); type Into = Stream<'f>;impl<'a, 'f, A: Automaton> IntoStreamer<'a> for fst::raw::StreamBuilder<'f, A> type Item = (&'a [u8], Output); type Into = Stream<'f, A>;impl<'s, 'a> IntoStreamer<'a> for &'s Set type Item = &'a [u8]; type Into = Stream<'s>;impl<'s, 'a, A: Automaton> IntoStreamer<'a> for fst::set::StreamBuilder<'s, A> type Item = &'a [u8]; type Into = Stream<'s, A>;impl<'a, S: Streamer<'a>> IntoStreamer<'a> for S type Item = S::Item; type Into = S;