pub enum PrimalDualType {
Serial,
DualParallel,
Parallel,
ErrorPatternLogger,
BlossomV,
}Variants§
Serial
serial primal and dual
DualParallel
parallel dual and serial primal
Parallel
parallel primal and dual
ErrorPatternLogger
log error into a file for later fetch
BlossomV
solver using traditional blossom V
Implementations§
Source§impl PrimalDualType
impl PrimalDualType
pub fn build( &self, initializer: &SolverInitializer, partition_info: &PartitionInfo, code: &dyn ExampleCode, primal_dual_config: Value, ) -> Box<dyn PrimalDualSolver>
Trait Implementations§
Source§impl Clone for PrimalDualType
impl Clone for PrimalDualType
Source§fn clone(&self) -> PrimalDualType
fn clone(&self) -> PrimalDualType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimalDualType
impl Debug for PrimalDualType
Source§impl Ord for PrimalDualType
impl Ord for PrimalDualType
Source§impl PartialEq for PrimalDualType
impl PartialEq for PrimalDualType
Source§impl PartialOrd for PrimalDualType
impl PartialOrd for PrimalDualType
Source§impl Serialize for PrimalDualType
impl Serialize for PrimalDualType
Source§impl ValueEnum for PrimalDualType
impl ValueEnum for PrimalDualType
impl Copy for PrimalDualType
impl Eq for PrimalDualType
impl StructuralPartialEq for PrimalDualType
Auto Trait Implementations§
impl Freeze for PrimalDualType
impl RefUnwindSafe for PrimalDualType
impl Send for PrimalDualType
impl Sync for PrimalDualType
impl Unpin for PrimalDualType
impl UnwindSafe for PrimalDualType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more