pub struct Flags(/* private fields */);Expand description
Planning flags that control algorithm selection.
Implementations§
Source§impl Flags
impl Flags
Sourcepub const ESTIMATE: Self
pub const ESTIMATE: Self
Use heuristics only, don’t measure (fastest planning, may not be optimal).
Sourcepub const EXHAUSTIVE: Self
pub const EXHAUSTIVE: Self
Try all possible algorithms exhaustively.
Sourcepub const PRESERVE_INPUT: Self
pub const PRESERVE_INPUT: Self
Preserve input array (default behavior).
Sourcepub const DESTROY_INPUT: Self
pub const DESTROY_INPUT: Self
Allow destroying input array for potentially better performance.
Sourcepub const fn is_measure(self) -> bool
pub const fn is_measure(self) -> bool
Check if MEASURE flag is set.
Sourcepub const fn is_patient(self) -> bool
pub const fn is_patient(self) -> bool
Check if PATIENT flag is set.
Sourcepub const fn is_exhaustive(self) -> bool
pub const fn is_exhaustive(self) -> bool
Check if EXHAUSTIVE flag is set.
Sourcepub const fn can_destroy_input(self) -> bool
pub const fn can_destroy_input(self) -> bool
Check if input destruction is allowed.
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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