#[non_exhaustive]pub enum OptimizeKind {
Optimal(Optimal),
NoOptimize(NoOptimize),
BranchBound(BranchBound),
Greedy(Greedy),
DynamicProgramming(DynamicProgramming),
RandomGreedy(RandomGreedy),
Auto(Auto),
AutoHq(AutoHq),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Optimal(Optimal)
NoOptimize(NoOptimize)
BranchBound(BranchBound)
Greedy(Greedy)
DynamicProgramming(DynamicProgramming)
RandomGreedy(RandomGreedy)
Auto(Auto)
AutoHq(AutoHq)
Implementations§
Source§impl OptimizeKind
impl OptimizeKind
pub fn optimizer(&mut self) -> &mut dyn PathOptimizer
Trait Implementations§
Source§impl Debug for OptimizeKind
impl Debug for OptimizeKind
Source§impl From<&str> for OptimizeKind
impl From<&str> for OptimizeKind
Source§impl From<bool> for OptimizeKind
impl From<bool> for OptimizeKind
Source§impl FromStr for OptimizeKind
impl FromStr for OptimizeKind
Source§impl PathOptimizer for OptimizeKind
impl PathOptimizer for OptimizeKind
fn optimize_path( &mut self, inputs: &[&ArrayIndexType], output: &ArrayIndexType, size_dict: &SizeDictType, memory_limit: Option<SizeType>, ) -> Result<PathType, String>
Auto Trait Implementations§
impl !RefUnwindSafe for OptimizeKind
impl !Send for OptimizeKind
impl !Sync for OptimizeKind
impl !UnwindSafe for OptimizeKind
impl Freeze for OptimizeKind
impl Unpin for OptimizeKind
impl UnsafeUnpin for OptimizeKind
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
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