pub struct Detected {
pub caps: Caps,
pub arch: Arch,
}Expand description
Detected CPU state: capabilities and architecture.
This struct combines all detection results:
caps: Available CPU features (what instructions can run)arch: Target architecture identifier
Use get() to obtain a cached instance, or detect_uncached() for
fresh detection (useful for testing/benchmarking).
Fields§
§caps: CapsCPU feature capabilities bitset.
arch: ArchTarget architecture identifier.
Implementations§
Trait Implementations§
impl Copy for Detected
impl Eq for Detected
impl StructuralPartialEq for Detected
Auto Trait Implementations§
impl Freeze for Detected
impl RefUnwindSafe for Detected
impl Send for Detected
impl Sync for Detected
impl Unpin for Detected
impl UnsafeUnpin for Detected
impl UnwindSafe for Detected
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