pub struct Config { /* private fields */ }Implementations§
Source§impl Config
impl Config
pub fn new( threading: Threading, memory: Memory, run_style: RunStyle, algorithm_config: AlgorithmConfig, validation: Option<Validation>, ) -> Self
pub fn cancellation_token(&self) -> CancellationToken
pub fn cancel(&mut self)
pub fn threading(&self) -> &Threading
pub fn memory(&self) -> &Memory
pub fn is_fragmented(&self) -> bool
pub fn run_style(&self) -> &RunStyle
pub fn algorithm_config(&self) -> &AlgorithmConfig
pub fn validation(&self) -> Option<&Validation>
pub fn to_io(&self) -> IoConfig
Trait Implementations§
Source§impl AsRef<AlgorithmConfig> for Config
impl AsRef<AlgorithmConfig> for Config
Source§fn as_ref(&self) -> &AlgorithmConfig
fn as_ref(&self) -> &AlgorithmConfig
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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