Struct puzzle_solver::LinExpr
[−]
[src]
pub struct LinExpr { /* fields omitted */ }
A linear expression.
constant + coef1 * var1 + coef2 * var2 + ...
Trait Implementations
impl<T: IntoCoef> From<T> for LinExpr
[src]
fn from(constant: T) -> Self
Performs the conversion.
impl From<VarToken> for LinExpr
[src]
impl Neg for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the -
operator
fn neg(self) -> Self::Output
The method for the unary -
operator
impl<T: IntoCoef> Add<T> for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the +
operator
fn add(self, rhs: T) -> Self::Output
The method for the +
operator
impl Sub<i32> for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the -
operator
fn sub(self, rhs: i32) -> Self::Output
The method for the -
operator
impl Sub<Rational32> for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the -
operator
fn sub(self, rhs: Rational32) -> Self::Output
The method for the -
operator
impl<T: IntoCoef> Mul<T> for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the *
operator
fn mul(self, rhs: T) -> Self::Output
The method for the *
operator
impl Add<VarToken> for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the +
operator
fn add(self, rhs: VarToken) -> Self::Output
The method for the +
operator
impl Sub<VarToken> for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the -
operator
fn sub(self, rhs: VarToken) -> Self::Output
The method for the -
operator
impl Add for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the +
operator
fn add(self, rhs: LinExpr) -> Self::Output
The method for the +
operator
impl Sub<LinExpr> for LinExpr
[src]
type Output = LinExpr
The resulting type after applying the -
operator
fn sub(self, rhs: LinExpr) -> Self::Output
The method for the -
operator
impl Clone for LinExpr
[src]
fn clone(&self) -> LinExpr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more