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 WISDOM_ONLY: Self
pub const WISDOM_ONLY: Self
Only use pre-existing wisdom; do not measure.
Matches FFTW’s FFTW_WISDOM_ONLY: when set, plan construction succeeds
only if a matching wisdom entry (build-time baseline or runtime cache)
already exists for the transform size. If no wisdom is found, planning
fails (returns None) rather than falling back to the heuristic or
running a benchmark. This lets callers guarantee that every plan they
build is backed by measured data.
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.
Sourcepub const fn is_wisdom_only(self) -> bool
pub const fn is_wisdom_only(self) -> bool
Check if WISDOM_ONLY flag is set.
See Flags::WISDOM_ONLY for the semantics.
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 UnsafeUnpin 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
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
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> ⓘ
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> ⓘ
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