pub struct VariableConstraints {
pub min: Option<f64>,
pub max: Option<f64>,
pub positive: bool,
pub integer: bool,
}Expand description
Constraints on variable values.
Fields§
§min: Option<f64>Minimum value (inclusive)
max: Option<f64>Maximum value (inclusive)
positive: boolMust be strictly positive
integer: boolMust be an integer
Trait Implementations§
Source§impl Clone for VariableConstraints
impl Clone for VariableConstraints
Source§fn clone(&self) -> VariableConstraints
fn clone(&self) -> VariableConstraints
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 moreAuto Trait Implementations§
impl Freeze for VariableConstraints
impl RefUnwindSafe for VariableConstraints
impl Send for VariableConstraints
impl Sync for VariableConstraints
impl Unpin for VariableConstraints
impl UnsafeUnpin for VariableConstraints
impl UnwindSafe for VariableConstraints
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