Enum mongod::Comparator[][src]

pub enum Comparator<T> where
    T: TryInto<Bson>,
    T::Error: Into<Error>, 
{ Eq(T), Gt(T), Gte(T), In(Vec<T>), Lt(T), Lte(T), Ne(T), Nin(Vec<T>), Null, }

The BSON comparators for comparison of different BSON type values

Variants

Eq(T)

Matches values that are equal to a specified value.

Gt(T)

Matches values that are greater than a specified value.

Gte(T)

Matches values that are greater than or equal to a specified value.

In(Vec<T>)

Matches any of the values specified in an array.

Lt(T)

Matches values that are less than a specified value.

Lte(T)

Matches values that are less than or equal to a specified value.

Ne(T)

Matches all values that are not equal to a specified value.

Nin(Vec<T>)

Matches none of the values specified in an array.

Null

Matches values that are equal to null.

Trait Implementations

impl<T> TryFrom<Comparator<T>> for Bson where
    T: TryInto<Bson>,
    T::Error: Into<Error>, 
[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for Comparator<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Comparator<T> where
    T: Send
[src]

impl<T> Sync for Comparator<T> where
    T: Sync
[src]

impl<T> Unpin for Comparator<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Comparator<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,