Skip to main content

Comparable

Trait Comparable 

Source
pub trait Comparable: Expression {
    // Provided methods
    fn eq<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Eq>
       where R: Into<Literal<Self::Output>> { ... }
    fn ne<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Ne>
       where R: Into<Literal<Self::Output>> { ... }
    fn lt<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Lt>
       where R: Into<Literal<Self::Output>> { ... }
    fn le<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Le>
       where R: Into<Literal<Self::Output>> { ... }
    fn gt<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Gt>
       where R: Into<Literal<Self::Output>> { ... }
    fn ge<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Ge>
       where R: Into<Literal<Self::Output>> { ... }
}
Expand description

Trait for comparable expressions

Provided Methods§

Source

fn eq<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Eq>
where R: Into<Literal<Self::Output>>,

Source

fn ne<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Ne>
where R: Into<Literal<Self::Output>>,

Source

fn lt<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Lt>
where R: Into<Literal<Self::Output>>,

Source

fn le<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Le>
where R: Into<Literal<Self::Output>>,

Source

fn gt<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Gt>
where R: Into<Literal<Self::Output>>,

Source

fn ge<R>(self, rhs: R) -> CompareExpr<Self, Literal<Self::Output>, Ge>
where R: Into<Literal<Self::Output>>,

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§