pub struct RuntimeFeatures {
pub cpu_features: CpuFeatures,
pub gpu_features: GpuFeatures,
pub system_features: SystemFeatures,
pub build_features: BuildFeatures,
}Expand description
Runtime feature detection results
Fields§
§cpu_features: CpuFeaturesCPU features
gpu_features: GpuFeaturesGPU features (if available)
system_features: SystemFeaturesSystem features
build_features: BuildFeaturesCompiler and build features
Trait Implementations§
Source§impl Clone for RuntimeFeatures
impl Clone for RuntimeFeatures
Source§fn clone(&self) -> RuntimeFeatures
fn clone(&self) -> RuntimeFeatures
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeFeatures
impl Debug for RuntimeFeatures
Source§impl Default for RuntimeFeatures
impl Default for RuntimeFeatures
Source§fn default() -> RuntimeFeatures
fn default() -> RuntimeFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeFeatures
impl RefUnwindSafe for RuntimeFeatures
impl Send for RuntimeFeatures
impl Sync for RuntimeFeatures
impl Unpin for RuntimeFeatures
impl UnwindSafe for RuntimeFeatures
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<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