Struct good_lp::Expression [−][src]
Implementations
impl<F> Expression<F>
[src]
pub fn leq<RHS: Into<Expression<F>>>(self, rhs: RHS) -> Constraint<F>
[src]
Creates a constraint indicating that this expression is lesser than or equal to the right hand side
pub fn geq<RHS: Into<Expression<F>>>(self, rhs: RHS) -> Constraint<F>
[src]
Creates a constraint indicating that this expression is greater than or equal to the right hand side
pub fn eq<RHS: Into<Expression<F>>>(self, rhs: RHS) -> Constraint<F>
[src]
Creates a constraint indicating that this expression is greater than or equal to the right hand side
pub fn add_mul<N: Into<f64>>(&mut self, a: N, b: &Expression<F>)
[src]
Trait Implementations
impl<'a, F> Add<&'a Expression<F>> for Expression<F>
[src]
type Output = Expression<F>
The resulting type after applying the +
operator.
fn add(mut self: Self, rhs: &'a Expression<F>) -> Self::Output
[src]
impl<F, RHS: Into<Expression<F>>> Add<RHS> for Expression<F>
[src]
type Output = Expression<F>
The resulting type after applying the +
operator.
fn add(self, rhs: RHS) -> Self::Output
[src]
impl<'a, F> AddAssign<&'a Expression<F>> for Expression<F>
[src]
fn add_assign(&mut self, rhs: &'a Expression<F>)
[src]
impl<F, RHS: Into<Expression<F>>> AddAssign<RHS> for Expression<F>
[src]
fn add_assign(&mut self, rhs: RHS)
[src]
impl<F> Clone for Expression<F>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for Expression<T>
[src]
impl<F> Default for Expression<F>
[src]
impl<F, N: Into<f64>> Div<N> for Expression<F>
[src]
type Output = Expression<F>
The resulting type after applying the /
operator.
fn div(mut self: Self, rhs: N) -> Self::Output
[src]
impl<F> FormatWithVars<F> for Expression<F>
[src]
fn format_with<FUN>(
&self,
f: &mut Formatter<'_>,
variable_format: FUN
) -> Result where
FUN: Fn(&mut Formatter<'_>, Variable<F>) -> Result,
[src]
&self,
f: &mut Formatter<'_>,
variable_format: FUN
) -> Result where
FUN: Fn(&mut Formatter<'_>, Variable<F>) -> Result,
fn format_debug(&self, f: &mut Formatter<'_>) -> Result
[src]
impl<'a, F> From<&'a Variable<F>> for Expression<F>
[src]
impl<F, N: Into<f64>> From<N> for Expression<F>
[src]
impl<F> From<Variable<F>> for Expression<F>
[src]
impl<F, N: Into<f64>> Mul<N> for Expression<F>
[src]
type Output = Expression<F>
The resulting type after applying the *
operator.
fn mul(mut self: Self, rhs: N) -> Self::Output
[src]
impl<F, N: Into<f64>> MulAssign<N> for Expression<F>
[src]
fn mul_assign(&mut self, rhs: N)
[src]
impl<T> Neg for Expression<T>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(mut self: Self) -> Self::Output
[src]
impl<F> PartialEq<Expression<F>> for Expression<F>
[src]
impl<F, RHS: Into<Expression<F>>> Shl<RHS> for Expression<F>
[src]
type Output = Constraint<F>
The resulting type after applying the <<
operator.
fn shl(self, rhs: RHS) -> Self::Output
[src]
impl<F, RHS: Into<Expression<F>>> Shr<RHS> for Expression<F>
[src]
type Output = Constraint<F>
The resulting type after applying the >>
operator.
fn shr(self, rhs: RHS) -> Self::Output
[src]
impl<'a, F> Sub<&'a Expression<F>> for Expression<F>
[src]
type Output = Expression<F>
The resulting type after applying the -
operator.
fn sub(mut self: Self, rhs: &'a Expression<F>) -> Self::Output
[src]
impl<F, RHS: Into<Expression<F>>> Sub<RHS> for Expression<F>
[src]
type Output = Expression<F>
The resulting type after applying the -
operator.
fn sub(self, rhs: RHS) -> Self::Output
[src]
impl<'a, F> SubAssign<&'a Expression<F>> for Expression<F>
[src]
fn sub_assign(&mut self, rhs: &'a Expression<F>)
[src]
impl<F, RHS: Into<Expression<F>>> SubAssign<RHS> for Expression<F>
[src]
fn sub_assign(&mut self, rhs: RHS)
[src]
impl<'a, F, A> Sum<A> for Expression<F> where
Expression<F>: From<A>,
[src]
Expression<F>: From<A>,
Auto Trait Implementations
impl<F> RefUnwindSafe for Expression<F> where
F: RefUnwindSafe,
[src]
F: RefUnwindSafe,
impl<F> Send for Expression<F> where
F: Send,
[src]
F: Send,
impl<F> Sync for Expression<F> where
F: Sync,
[src]
F: Sync,
impl<F> Unpin for Expression<F> where
F: Unpin,
[src]
F: Unpin,
impl<F> UnwindSafe for Expression<F> where
F: UnwindSafe,
[src]
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,