tantivy_fst::map

Struct Difference

Source
pub struct Difference<'m>(/* private fields */);
Expand description

A stream of set difference over multiple map streams in lexicographic order.

The difference operation is taken with respect to the first stream and the rest of the streams. i.e., All elements in the first stream that do not appear in any other streams.

The 'm lifetime parameter refers to the lifetime of the underlying map.

Trait Implementations§

Source§

impl<'a, 'm> Streamer<'a> for Difference<'m>

Source§

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

The type of the item emitted by this stream.
Source§

fn next(&'a mut self) -> Option<Self::Item>

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

Auto Trait Implementations§

§

impl<'m> Freeze for Difference<'m>

§

impl<'m> !RefUnwindSafe for Difference<'m>

§

impl<'m> !Send for Difference<'m>

§

impl<'m> !Sync for Difference<'m>

§

impl<'m> Unpin for Difference<'m>

§

impl<'m> !UnwindSafe for Difference<'m>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

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

The type of the item emitted by the stream.
Source§

type Into = S

The type of the stream to be constructed.
Source§

fn into_stream(self) -> S

Construct a stream from Self.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.