#[repr(C)]
pub enum FFIBinaryCondition<'a> {
    Equals([&'a FFICondition<'a>; 2]),
    NotEquals([&'a FFICondition<'a>; 2]),
    Greater([&'a FFICondition<'a>; 2]),
    GreaterOrEquals([&'a FFICondition<'a>; 2]),
    Less([&'a FFICondition<'a>; 2]),
    LessOrEquals([&'a FFICondition<'a>; 2]),
    Like([&'a FFICondition<'a>; 2]),
    NotLike([&'a FFICondition<'a>; 2]),
    Regexp([&'a FFICondition<'a>; 2]),
    NotRegexp([&'a FFICondition<'a>; 2]),
    In([&'a FFICondition<'a>; 2]),
    NotIn([&'a FFICondition<'a>; 2]),
}
Expand description

This enum represents a binary expression.

Variants§

§

Equals([&'a FFICondition<'a>; 2])

Representation of “{} = {}” in SQL

§

NotEquals([&'a FFICondition<'a>; 2])

Representation of “{} <> {}” in SQL

§

Greater([&'a FFICondition<'a>; 2])

Representation of “{} > {}” in SQL

§

GreaterOrEquals([&'a FFICondition<'a>; 2])

Representation of “{} >= {}” in SQL

§

Less([&'a FFICondition<'a>; 2])

Representation of “{} < {}” in SQL

§

LessOrEquals([&'a FFICondition<'a>; 2])

Representation of “{} <= {}” in SQL

§

Like([&'a FFICondition<'a>; 2])

Representation of “{} LIKE {}” in SQL

§

NotLike([&'a FFICondition<'a>; 2])

Representation of “{} NOT LIKE {}” in SQL

§

Regexp([&'a FFICondition<'a>; 2])

Representation of “{} REGEXP {}” in SQL

§

NotRegexp([&'a FFICondition<'a>; 2])

Representation of “{} NOT REGEXP {}” in SQL

§

In([&'a FFICondition<'a>; 2])

Representation of “{} IN {}” in SQL

§

NotIn([&'a FFICondition<'a>; 2])

Representation of “{} NOT IN {}” in SQL

Trait Implementations§

source§

impl<'a> TryFrom<&FFIBinaryCondition<'a>> for BinaryCondition<'a>

§

type Error = Error<'a>

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

fn try_from(value: &FFIBinaryCondition<'a>) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for FFIBinaryCondition<'a>

§

impl<'a> !Send for FFIBinaryCondition<'a>

§

impl<'a> !Sync for FFIBinaryCondition<'a>

§

impl<'a> Unpin for FFIBinaryCondition<'a>

§

impl<'a> UnwindSafe for FFIBinaryCondition<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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<T> Same<T> for T

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
§

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

§

fn vzip(self) -> V