Skip to main content

IntoRhs

Trait IntoRhs 

Source
pub trait IntoRhs<'a> {
    // Required method
    fn fold_rhs(self, lhs: Expr<'a>) -> (Expr<'a>, f64);
}
Expand description

What can appear on the right-hand side of a constraint. Numeric scalars stay as the canonical rhs. Expressions get subtracted into the LHS.

Required Methods§

Source

fn fold_rhs(self, lhs: Expr<'a>) -> (Expr<'a>, f64)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a> IntoRhs<'a> for f64

Source§

fn fold_rhs(self, lhs: Expr<'a>) -> (Expr<'a>, f64)

Source§

impl<'a> IntoRhs<'a> for i32

Source§

fn fold_rhs(self, lhs: Expr<'a>) -> (Expr<'a>, f64)

Implementors§

Source§

impl<'a> IntoRhs<'a> for Expr<'a>