pub struct NoConstraints {}Expand description
The whole space, no constraints
Implementations§
Source§impl NoConstraints
impl NoConstraints
Sourcepub fn new() -> NoConstraints
pub fn new() -> NoConstraints
Constructs new instance of NoConstraints
§Example
use optimization_engine::constraints::{Constraint, NoConstraints};
let no_constraints = NoConstraints::new();
let mut x = [1.0, -2.0, 3.0];
no_constraints.project(&mut x).unwrap();Trait Implementations§
Source§impl Clone for NoConstraints
impl Clone for NoConstraints
Source§impl<T> Constraint<T> for NoConstraints
impl<T> Constraint<T> for NoConstraints
impl Copy for NoConstraints
Auto Trait Implementations§
impl Freeze for NoConstraints
impl RefUnwindSafe for NoConstraints
impl Send for NoConstraints
impl Sync for NoConstraints
impl Unpin for NoConstraints
impl UnsafeUnpin for NoConstraints
impl UnwindSafe for NoConstraints
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