Skip to main content

Relate

Trait Relate 

Source
pub trait Relate<'a> {
    // Required methods
    fn le<R: IntoRhs<'a>>(self, rhs: R) -> ConstraintExpr<'a>;
    fn ge<R: IntoRhs<'a>>(self, rhs: R) -> ConstraintExpr<'a>;
    fn eq<R: IntoRhs<'a>>(self, rhs: R) -> ConstraintExpr<'a>;
}
Expand description

Build a constraint from an expression. Lives on Expr itself.

Required Methods§

Source

fn le<R: IntoRhs<'a>>(self, rhs: R) -> ConstraintExpr<'a>

Source

fn ge<R: IntoRhs<'a>>(self, rhs: R) -> ConstraintExpr<'a>

Source

fn eq<R: IntoRhs<'a>>(self, rhs: R) -> ConstraintExpr<'a>

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<'a> Relate<'a> for Expr<'a>