#[repr(u8)]pub enum Architecture {
Arch8Bit = 1,
Arch16Bit = 2,
Arch32Bit = 4,
Arch64Bit = 8,
}
Expand description
Enum representing the architecture of a process
Variants§
Arch8Bit = 1
8-bit architecture
Arch16Bit = 2
16-bit architecture
Arch32Bit = 4
32-bit architecture
Arch64Bit = 8
64-bit architecture
Implementations§
Source§impl Architecture
impl Architecture
Sourcepub fn from_native() -> Architecture
pub fn from_native() -> Architecture
Create an Architecture matching that of the host process.
Sourcepub fn pointer_from_ne_bytes(self, bytes: &[u8]) -> usize
pub fn pointer_from_ne_bytes(self, bytes: &[u8]) -> usize
Convert bytes read from memory into a pointer in the current architecture.
§Panics
If there are not enough bytes in the slice to make an integer of the sized indicated by
self
.
Trait Implementations§
Source§impl Clone for Architecture
impl Clone for Architecture
Source§fn clone(&self) -> Architecture
fn clone(&self) -> Architecture
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 Architecture
impl Debug for Architecture
impl Copy for Architecture
Auto Trait Implementations§
impl Freeze for Architecture
impl RefUnwindSafe for Architecture
impl Send for Architecture
impl Sync for Architecture
impl Unpin for Architecture
impl UnwindSafe for 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