pub struct FeatureValidatedConfig<T, F>where
T: ValidConfig,
F: FeatureFlags,{ /* private fields */ }Expand description
Validated configuration with feature constraints
Implementations§
Source§impl<T, F> FeatureValidatedConfig<T, F>where
T: ValidConfig,
F: FeatureFlags,
impl<T, F> FeatureValidatedConfig<T, F>where
T: ValidConfig,
F: FeatureFlags,
Sourcepub fn new(config: T) -> Result<Self, ConfigurationValidationError>
pub fn new(config: T) -> Result<Self, ConfigurationValidationError>
Create a feature-validated configuration
Sourcepub const fn supports_parallel() -> bool
pub const fn supports_parallel() -> bool
Check if parallel execution is supported
Sourcepub const fn supports_gpu() -> bool
pub const fn supports_gpu() -> bool
Check if GPU acceleration is supported
Sourcepub fn config(&self) -> &ValidatedConfig<T>
pub fn config(&self) -> &ValidatedConfig<T>
Access the validated configuration
Auto Trait Implementations§
impl<T, F> Freeze for FeatureValidatedConfig<T, F>where
T: Freeze,
impl<T, F> RefUnwindSafe for FeatureValidatedConfig<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for FeatureValidatedConfig<T, F>
impl<T, F> Sync for FeatureValidatedConfig<T, F>
impl<T, F> Unpin for FeatureValidatedConfig<T, F>
impl<T, F> UnwindSafe for FeatureValidatedConfig<T, F>where
T: UnwindSafe,
F: UnwindSafe,
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