pub struct StaticSolver<T>(/* private fields */);Expand description
A static version of a solver, where the solver itself doesn’t hold any data
use lp_solvers::solvers::{StaticSolver, CbcSolver};
const STATIC_SOLVER : StaticSolver<CbcSolver> = StaticSolver::new();Implementations§
Source§impl<T> StaticSolver<T>
impl<T> StaticSolver<T>
Trait Implementations§
Source§impl<T: Clone> Clone for StaticSolver<T>
impl<T: Clone> Clone for StaticSolver<T>
Source§fn clone(&self) -> StaticSolver<T>
fn clone(&self) -> StaticSolver<T>
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<T: Default> Default for StaticSolver<T>
impl<T: Default> Default for StaticSolver<T>
Source§fn default() -> StaticSolver<T>
fn default() -> StaticSolver<T>
Returns the “default value” for a type. Read more
Source§impl<T: SolverTrait + Default> SolverTrait for StaticSolver<T>
impl<T: SolverTrait + Default> SolverTrait for StaticSolver<T>
impl<T: Copy> Copy for StaticSolver<T>
Auto Trait Implementations§
impl<T> Freeze for StaticSolver<T>
impl<T> RefUnwindSafe for StaticSolver<T>where
T: RefUnwindSafe,
impl<T> Send for StaticSolver<T>where
T: Send,
impl<T> Sync for StaticSolver<T>where
T: Sync,
impl<T> Unpin for StaticSolver<T>where
T: Unpin,
impl<T> UnwindSafe for StaticSolver<T>where
T: UnwindSafe,
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