pub struct LpContinuous {
pub name: String,
pub lower_bound: Option<f32>,
pub upper_bound: Option<f32>,
}Fields§
§name: String§lower_bound: Option<f32>§upper_bound: Option<f32>Implementations§
Source§impl LpContinuous
impl LpContinuous
pub fn new(name: &str) -> LpContinuous
Trait Implementations§
Source§impl<'a> Add<&'a LpContinuous> for f32
impl<'a> Add<&'a LpContinuous> for f32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
+ operator.Source§fn add(self, var: &'a LpContinuous) -> LpExpression
fn add(self, var: &'a LpContinuous) -> LpExpression
Performs the
+ operation. Read moreSource§impl<'a> Add<&'a LpContinuous> for i32
impl<'a> Add<&'a LpContinuous> for i32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
+ operator.Source§fn add(self, var: &'a LpContinuous) -> LpExpression
fn add(self, var: &'a LpContinuous) -> LpExpression
Performs the
+ operation. Read moreSource§impl Add<LpContinuous> for f32
impl Add<LpContinuous> for f32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
+ operator.Source§fn add(self, var: LpContinuous) -> LpExpression
fn add(self, var: LpContinuous) -> LpExpression
Performs the
+ operation. Read moreSource§impl Add<LpContinuous> for i32
impl Add<LpContinuous> for i32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
+ operator.Source§fn add(self, var: LpContinuous) -> LpExpression
fn add(self, var: LpContinuous) -> LpExpression
Performs the
+ operation. Read moreSource§impl<'a, T> Add<T> for &'a LpContinuous
impl<'a, T> Add<T> for &'a LpContinuous
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
+ operator.Source§fn add(self, not_yet_lp_expr_arena: T) -> LpExpression
fn add(self, not_yet_lp_expr_arena: T) -> LpExpression
Performs the
+ operation. Read moreSource§impl<T> Add<T> for LpContinuous
impl<T> Add<T> for LpContinuous
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
+ operator.Source§fn add(self, not_yet_lp_expr_arena: T) -> LpExpression
fn add(self, not_yet_lp_expr_arena: T) -> LpExpression
Performs the
+ operation. Read moreSource§impl BoundableLp for LpContinuous
impl BoundableLp for LpContinuous
fn lower_bound(&self, lw: f32) -> LpContinuous
fn upper_bound(&self, up: f32) -> LpContinuous
Source§impl Clone for LpContinuous
impl Clone for LpContinuous
Source§fn clone(&self) -> LpContinuous
fn clone(&self) -> LpContinuous
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LpContinuous
impl Debug for LpContinuous
Source§impl<'a> From<&'a LpContinuous> for LpExpression
impl<'a> From<&'a LpContinuous> for LpExpression
Source§fn from(from: &'a LpContinuous) -> Self
fn from(from: &'a LpContinuous) -> Self
Converts to this type from the input type.
Source§impl From<LpContinuous> for LpExpression
impl From<LpContinuous> for LpExpression
Source§fn from(from: LpContinuous) -> Self
fn from(from: LpContinuous) -> Self
Converts to this type from the input type.
Source§impl<'a> Mul<&'a LpContinuous> for f32
impl<'a> Mul<&'a LpContinuous> for f32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
* operator.Source§fn mul(self, var: &'a LpContinuous) -> LpExpression
fn mul(self, var: &'a LpContinuous) -> LpExpression
Performs the
* operation. Read moreSource§impl<'a> Mul<&'a LpContinuous> for i32
impl<'a> Mul<&'a LpContinuous> for i32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
* operator.Source§fn mul(self, var: &'a LpContinuous) -> LpExpression
fn mul(self, var: &'a LpContinuous) -> LpExpression
Performs the
* operation. Read moreSource§impl Mul<LpContinuous> for f32
impl Mul<LpContinuous> for f32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
* operator.Source§fn mul(self, var: LpContinuous) -> LpExpression
fn mul(self, var: LpContinuous) -> LpExpression
Performs the
* operation. Read moreSource§impl Mul<LpContinuous> for i32
impl Mul<LpContinuous> for i32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
* operator.Source§fn mul(self, var: LpContinuous) -> LpExpression
fn mul(self, var: LpContinuous) -> LpExpression
Performs the
* operation. Read moreSource§impl<'a, T> Mul<T> for &'a LpContinuous
impl<'a, T> Mul<T> for &'a LpContinuous
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
* operator.Source§fn mul(self, not_yet_lp_expr_arena: T) -> LpExpression
fn mul(self, not_yet_lp_expr_arena: T) -> LpExpression
Performs the
* operation. Read moreSource§impl<T> Mul<T> for LpContinuous
impl<T> Mul<T> for LpContinuous
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
* operator.Source§fn mul(self, not_yet_lp_expr_arena: T) -> LpExpression
fn mul(self, not_yet_lp_expr_arena: T) -> LpExpression
Performs the
* operation. Read moreSource§impl<'a> Neg for &'a LpContinuous
impl<'a> Neg for &'a LpContinuous
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
- operator.Source§fn neg(self) -> LpExpression
fn neg(self) -> LpExpression
Performs the unary
- operation. Read moreSource§impl PartialEq for LpContinuous
impl PartialEq for LpContinuous
Source§impl<'a> Sub<&'a LpContinuous> for f32
impl<'a> Sub<&'a LpContinuous> for f32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
- operator.Source§fn sub(self, var: &'a LpContinuous) -> LpExpression
fn sub(self, var: &'a LpContinuous) -> LpExpression
Performs the
- operation. Read moreSource§impl<'a> Sub<&'a LpContinuous> for i32
impl<'a> Sub<&'a LpContinuous> for i32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
- operator.Source§fn sub(self, var: &'a LpContinuous) -> LpExpression
fn sub(self, var: &'a LpContinuous) -> LpExpression
Performs the
- operation. Read moreSource§impl Sub<LpContinuous> for f32
impl Sub<LpContinuous> for f32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
- operator.Source§fn sub(self, var: LpContinuous) -> LpExpression
fn sub(self, var: LpContinuous) -> LpExpression
Performs the
- operation. Read moreSource§impl Sub<LpContinuous> for i32
impl Sub<LpContinuous> for i32
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
- operator.Source§fn sub(self, var: LpContinuous) -> LpExpression
fn sub(self, var: LpContinuous) -> LpExpression
Performs the
- operation. Read moreSource§impl<'a, T> Sub<T> for &'a LpContinuous
impl<'a, T> Sub<T> for &'a LpContinuous
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
- operator.Source§fn sub(self, not_yet_lp_expr_arena: T) -> LpExpression
fn sub(self, not_yet_lp_expr_arena: T) -> LpExpression
Performs the
- operation. Read moreSource§impl<T> Sub<T> for LpContinuous
impl<T> Sub<T> for LpContinuous
Source§type Output = LpExpression
type Output = LpExpression
The resulting type after applying the
- operator.Source§fn sub(self, not_yet_lp_expr_arena: T) -> LpExpression
fn sub(self, not_yet_lp_expr_arena: T) -> LpExpression
Performs the
- operation. Read moreSource§impl ToTokens for LpContinuous
impl ToTokens for LpContinuous
Source§fn to_tokens(&self, stream: &mut TokenStream)
fn to_tokens(&self, stream: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl StructuralPartialEq for LpContinuous
Auto Trait Implementations§
impl Freeze for LpContinuous
impl RefUnwindSafe for LpContinuous
impl Send for LpContinuous
impl Sync for LpContinuous
impl Unpin for LpContinuous
impl UnwindSafe for LpContinuous
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> LpOperations<T> for U
impl<T, U> LpOperations<T> for U
Source§fn le(&self, lhs_expr: T) -> LpConstraint
fn le(&self, lhs_expr: T) -> LpConstraint
Less or equal binary syntax for LpExpression
Source§fn ge(&self, lhs_expr: T) -> LpConstraint
fn ge(&self, lhs_expr: T) -> LpConstraint
Greater or equal binary syntax for LpExpression
Source§fn equal(&self, lhs_expr: T) -> LpConstraint
fn equal(&self, lhs_expr: T) -> LpConstraint
Equality binary syntax for LpExpression