TsQueryExtensions

Trait TsQueryExtensions 

Source
pub trait TsQueryExtensions: Expression<SqlType = TsQuery> + Sized {
    // Provided methods
    fn matches<T: AsExpression<TsVector>>(
        self,
        other: T,
    ) -> Matches<Self, T::Expression> { ... }
    fn and<T: AsExpression<TsQuery>>(self, other: T) -> And<Self, T::Expression> { ... }
    fn or<T: AsExpression<TsQuery>>(self, other: T) -> Or<Self, T::Expression> { ... }
    fn contains<T: AsExpression<TsQuery>>(
        self,
        other: T,
    ) -> Contains<Self, T::Expression> { ... }
    fn contained_by<T: AsExpression<TsQuery>>(
        self,
        other: T,
    ) -> ContainedBy<Self, T::Expression> { ... }
}

Provided Methods§

Source

fn matches<T: AsExpression<TsVector>>( self, other: T, ) -> Matches<Self, T::Expression>

Source

fn and<T: AsExpression<TsQuery>>(self, other: T) -> And<Self, T::Expression>

Source

fn or<T: AsExpression<TsQuery>>(self, other: T) -> Or<Self, T::Expression>

Source

fn contains<T: AsExpression<TsQuery>>( self, other: T, ) -> Contains<Self, T::Expression>

Source

fn contained_by<T: AsExpression<TsQuery>>( self, other: T, ) -> ContainedBy<Self, T::Expression>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Expression<SqlType = TsQuery>> TsQueryExtensions for T