pub enum ConstraintSpec {
Linear {
a: Vec<Vec<f64>>,
lb: Vec<f64>,
ub: Vec<f64>,
keep_feasible: Option<bool>,
},
NonlinearBounds {
fun: Arc<dyn Fn(&[f64]) -> Vec<f64> + Send + Sync + 'static>,
lb: Vec<f64>,
ub: Vec<f64>,
},
Dict {
ctype: ConstraintType,
fun: Arc<dyn Fn(&[f64]) -> f64 + Send + Sync + 'static>,
},
}
Variants§
Trait Implementations§
Source§impl Clone for ConstraintSpec
impl Clone for ConstraintSpec
Source§fn clone(&self) -> ConstraintSpec
fn clone(&self) -> ConstraintSpec
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 ConstraintSpec
impl !RefUnwindSafe for ConstraintSpec
impl Send for ConstraintSpec
impl Sync for ConstraintSpec
impl Unpin for ConstraintSpec
impl !UnwindSafe for ConstraintSpec
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