Skip to main content

FieldIn

Trait FieldIn 

Source
pub trait FieldIn<'rhs, Rhs, Any = ()>: FieldType {
    type InCond<I: FieldProxyImpl>: Condition<'rhs>;
    type NiCond<I: FieldProxyImpl>: Condition<'rhs>;

    // Required methods
    fn field_in<I: FieldProxyImpl>(
        field: FieldProxy<I>,
        value: Rhs,
    ) -> Self::InCond<I>;
    fn field_not_in<I: FieldProxyImpl>(
        field: FieldProxy<I>,
        value: Rhs,
    ) -> Self::NiCond<I>;
}
Expand description

Trait for field types to implement sql’s IN comparison.

Read module notes, before using.

Required Associated Types§

Source

type InCond<I: FieldProxyImpl>: Condition<'rhs>

Condition type returned from [FieldRegexp::field_in]

Source

type NiCond<I: FieldProxyImpl>: Condition<'rhs>

Condition type returned from [FieldRegexp::field_not_in]

Required Methods§

Source

fn field_in<I: FieldProxyImpl>( field: FieldProxy<I>, value: Rhs, ) -> Self::InCond<I>

Compare the field to another value using IN

Source

fn field_not_in<I: FieldProxyImpl>( field: FieldProxy<I>, value: Rhs, ) -> Self::NiCond<I>

Compare the field to another value using NOT IN

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§