pub struct PROCESSOR(/* private fields */);
Available on crate feature
kernel
only.Expand description
SYSTEM_INFO
dwProcessorType
(u32
).
Implementations§
source§impl PROCESSOR
impl PROCESSOR
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl PROCESSOR
impl PROCESSOR
pub const INTEL_386: Self = _
pub const INTEL_486: Self = _
pub const INTEL_PENTIUM: Self = _
pub const INTEL_IA64: Self = _
pub const AMD_X8664: Self = _
pub const MIPS_R4000: Self = _
pub const ALPHA_21064: Self = _
pub const PPC_601: Self = _
pub const PPC_603: Self = _
pub const PPC_604: Self = _
pub const PPC_620: Self = _
pub const HITACHI_SH3: Self = _
pub const HITACHI_SH3E: Self = _
pub const HITACHI_SH4: Self = _
pub const MOTOROLA_821: Self = _
pub const SHx_SH3: Self = _
pub const SHx_SH4: Self = _
pub const STRONGARM: Self = _
pub const ARM720: Self = _
pub const ARM820: Self = _
pub const ARM920: Self = _
pub const ARM_7TDMI: Self = _
pub const OPTIL: Self = _
Trait Implementations§
source§impl IntUnderlying for PROCESSOR
impl IntUnderlying for PROCESSOR
source§impl Ord for PROCESSOR
impl Ord for PROCESSOR
source§impl PartialEq for PROCESSOR
impl PartialEq for PROCESSOR
source§impl PartialOrd for PROCESSOR
impl PartialOrd for PROCESSOR
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PROCESSOR
impl Eq for PROCESSOR
impl NativeConst for PROCESSOR
impl Send for PROCESSOR
impl StructuralPartialEq for PROCESSOR
Auto Trait Implementations§
impl Freeze for PROCESSOR
impl RefUnwindSafe for PROCESSOR
impl Sync for PROCESSOR
impl Unpin for PROCESSOR
impl UnwindSafe for PROCESSOR
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