pub struct Variable(pub &'static str);Expand description
A generic variable that can be created with a &'static str.
Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl Add<Expression<Variable>> for Variable
impl Add<Expression<Variable>> for Variable
Source§type Output = Expression<Variable>
type Output = Expression<Variable>
The resulting type after applying the
+ operator.Source§fn add(self, e: Expression<Variable>) -> Expression<Variable>
fn add(self, e: Expression<Variable>) -> Expression<Variable>
Performs the
+ operation. Read moreSource§impl AddAssign<Variable> for Expression<Variable>
impl AddAssign<Variable> for Expression<Variable>
Source§fn add_assign(&mut self, v: Variable)
fn add_assign(&mut self, v: Variable)
Performs the
+= operation. Read moreSource§impl Constrainable<Variable> for Variable
impl Constrainable<Variable> for Variable
fn equal_to<X>(self, x: X) -> Constraint<Variable>
fn greater_than_or_equal_to<X>(self, x: X) -> Constraint<Variable>
fn less_than_or_equal_to<X>(self, x: X) -> Constraint<Variable>
fn is<X>(self, x: X) -> Constraint<Var>
fn is_ge<X>(self, x: X) -> Constraint<Var>
fn is_le<X>(self, x: X) -> Constraint<Var>
Source§impl Sub<Expression<Variable>> for Variable
impl Sub<Expression<Variable>> for Variable
Source§type Output = Expression<Variable>
type Output = Expression<Variable>
The resulting type after applying the
- operator.Source§fn sub(self, e: Expression<Variable>) -> Expression<Variable>
fn sub(self, e: Expression<Variable>) -> Expression<Variable>
Performs the
- operation. Read moreSource§impl SubAssign<Variable> for Expression<Variable>
impl SubAssign<Variable> for Expression<Variable>
Source§fn sub_assign(&mut self, v: Variable)
fn sub_assign(&mut self, v: Variable)
Performs the
-= operation. Read moreimpl Copy for Variable
impl Eq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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