pub struct Features;Expand description
Compile-time feature detection
Implementations§
Source§impl Features
impl Features
Sourcepub const fn has_no_std() -> bool
pub const fn has_no_std() -> bool
Check if no_std mode is enabled
Sourcepub const fn has_binary() -> bool
pub const fn has_binary() -> bool
Check if binary serialization is enabled
Sourcepub const fn has_parallel() -> bool
pub const fn has_parallel() -> bool
Check if parallel processing is enabled
Sourcepub const fn has_streaming() -> bool
pub const fn has_streaming() -> bool
Check if streaming support is enabled
Sourcepub const fn has_distributed() -> bool
pub const fn has_distributed() -> bool
Check if distributed computing is enabled
Sourcepub const fn has_linear_models() -> bool
pub const fn has_linear_models() -> bool
Algorithm category checks
pub const fn has_tree_models() -> bool
pub const fn has_neural_networks() -> bool
pub const fn has_clustering() -> bool
pub const fn has_dimensionality_reduction() -> bool
pub const fn has_ensemble_methods() -> bool
Sourcepub const fn has_validation() -> bool
pub const fn has_validation() -> bool
Utility feature checks
pub const fn has_metrics() -> bool
pub const fn has_preprocessing() -> bool
pub const fn has_model_selection() -> bool
Sourcepub const fn has_debug_assertions() -> bool
pub const fn has_debug_assertions() -> bool
Development feature checks
pub const fn has_profiling() -> bool
pub const fn has_benchmarking() -> bool
Sourcepub fn enabled_features() -> HashMap<&'static str, bool>
pub fn enabled_features() -> HashMap<&'static str, bool>
Get all enabled features as a HashMap
Sourcepub fn print_enabled_features()
pub fn print_enabled_features()
Print all enabled features (useful for debugging)
Sourcepub fn feature_summary() -> FeatureSummary
pub fn feature_summary() -> FeatureSummary
Get a summary of enabled feature categories
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnsafeUnpin for Features
impl UnwindSafe for Features
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.