PqCidrExtensionMethods

Trait PqCidrExtensionMethods 

Source
pub trait PqCidrExtensionMethods: Expression<SqlType = Cidr> + Sized {
    // Provided methods
    fn is_contained_by<T>(self, other: T) -> IsContainedBy<Self, T::Expression>
       where T: AsExpression<Self::SqlType> { ... }
    fn is_contained_by_or_equals<T>(
        self,
        other: T,
    ) -> IsContainedByOrEquals<Self, T::Expression>
       where T: AsExpression<Self::SqlType> { ... }
    fn contains<T>(self, other: T) -> Contains<Self, T::Expression>
       where T: AsExpression<Self::SqlType> { ... }
    fn contains_or_equals<T>(
        self,
        other: T,
    ) -> ContainsOrEquals<Self, T::Expression>
       where T: AsExpression<Self::SqlType> { ... }
    fn contains_or_is_contained_by<T>(
        self,
        other: T,
    ) -> ContainsOrIsContainedBy<Self, T::Expression>
       where T: AsExpression<Self::SqlType> { ... }
}
Expand description

Support for PostgreSQL Network Address Operators for Diesel

See PostgreSQL documentation for details.

Provided Methods§

Source

fn is_contained_by<T>(self, other: T) -> IsContainedBy<Self, T::Expression>
where T: AsExpression<Self::SqlType>,

Creates a SQL << expression.

Source

fn is_contained_by_or_equals<T>( self, other: T, ) -> IsContainedByOrEquals<Self, T::Expression>
where T: AsExpression<Self::SqlType>,

Creates a SQL <<= expression.

Source

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

Creates a SQL >> expression.

Source

fn contains_or_equals<T>( self, other: T, ) -> ContainsOrEquals<Self, T::Expression>
where T: AsExpression<Self::SqlType>,

Creates a SQL >>= expression.

Source

fn contains_or_is_contained_by<T>( self, other: T, ) -> ContainsOrIsContainedBy<Self, T::Expression>
where T: AsExpression<Self::SqlType>,

Creates a SQL && 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> PqCidrExtensionMethods for T
where T: Expression<SqlType = Cidr>,