Struct winsafe::co::PROCESSOR_ARCHITECTURE
source · pub struct PROCESSOR_ARCHITECTURE(/* private fields */);
Available on crate feature
kernel
only.Expand description
SYSTEM_INFO
wProcessorArchitecture
(u16
).
Implementations§
source§impl PROCESSOR_ARCHITECTURE
impl PROCESSOR_ARCHITECTURE
sourcepub const unsafe fn from_raw(v: u16) -> Self
pub const unsafe fn from_raw(v: u16) -> 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) -> u16
pub const fn raw(&self) -> u16
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_ARCHITECTURE
impl PROCESSOR_ARCHITECTURE
pub const INTEL: Self = _
pub const MIPS: Self = _
pub const ALPHA: Self = _
pub const PPC: Self = _
pub const SHX: Self = _
pub const ARM: Self = _
pub const IA64: Self = _
pub const ALPHA64: Self = _
pub const MSIL: Self = _
pub const AMD64: Self = _
pub const IA32_ON_WIN64: Self = _
pub const NEUTRAL: Self = _
pub const ARM64: Self = _
pub const ARM32_ON_WIN64: Self = _
pub const IA32_ON_ARM64: Self = _
pub const UNKNOWN: Self = _
Trait Implementations§
source§impl AsRef<u16> for PROCESSOR_ARCHITECTURE
impl AsRef<u16> for PROCESSOR_ARCHITECTURE
source§impl Binary for PROCESSOR_ARCHITECTURE
impl Binary for PROCESSOR_ARCHITECTURE
source§impl Clone for PROCESSOR_ARCHITECTURE
impl Clone for PROCESSOR_ARCHITECTURE
source§fn clone(&self) -> PROCESSOR_ARCHITECTURE
fn clone(&self) -> PROCESSOR_ARCHITECTURE
Returns a copy 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 PROCESSOR_ARCHITECTURE
impl Debug for PROCESSOR_ARCHITECTURE
source§impl Default for PROCESSOR_ARCHITECTURE
impl Default for PROCESSOR_ARCHITECTURE
source§fn default() -> PROCESSOR_ARCHITECTURE
fn default() -> PROCESSOR_ARCHITECTURE
Returns the “default value” for a type. Read more
source§impl Display for PROCESSOR_ARCHITECTURE
impl Display for PROCESSOR_ARCHITECTURE
source§impl From<PROCESSOR_ARCHITECTURE> for u16
impl From<PROCESSOR_ARCHITECTURE> for u16
source§fn from(v: PROCESSOR_ARCHITECTURE) -> Self
fn from(v: PROCESSOR_ARCHITECTURE) -> Self
Converts to this type from the input type.
source§impl Hash for PROCESSOR_ARCHITECTURE
impl Hash for PROCESSOR_ARCHITECTURE
source§impl LowerHex for PROCESSOR_ARCHITECTURE
impl LowerHex for PROCESSOR_ARCHITECTURE
source§impl Octal for PROCESSOR_ARCHITECTURE
impl Octal for PROCESSOR_ARCHITECTURE
source§impl Ord for PROCESSOR_ARCHITECTURE
impl Ord for PROCESSOR_ARCHITECTURE
source§impl PartialEq for PROCESSOR_ARCHITECTURE
impl PartialEq for PROCESSOR_ARCHITECTURE
source§fn eq(&self, other: &PROCESSOR_ARCHITECTURE) -> bool
fn eq(&self, other: &PROCESSOR_ARCHITECTURE) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PROCESSOR_ARCHITECTURE
impl PartialOrd for PROCESSOR_ARCHITECTURE
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 moresource§impl UpperHex for PROCESSOR_ARCHITECTURE
impl UpperHex for PROCESSOR_ARCHITECTURE
impl Copy for PROCESSOR_ARCHITECTURE
impl Eq for PROCESSOR_ARCHITECTURE
impl NativeConst for PROCESSOR_ARCHITECTURE
impl Send for PROCESSOR_ARCHITECTURE
impl StructuralPartialEq for PROCESSOR_ARCHITECTURE
Auto Trait Implementations§
impl Freeze for PROCESSOR_ARCHITECTURE
impl RefUnwindSafe for PROCESSOR_ARCHITECTURE
impl Sync for PROCESSOR_ARCHITECTURE
impl Unpin for PROCESSOR_ARCHITECTURE
impl UnwindSafe for PROCESSOR_ARCHITECTURE
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