[][src]Enum process_memory::Architecture

#[repr(u8)]pub enum Architecture {
    Arch8Bit,
    Arch16Bit,
    Arch32Bit,
    Arch64Bit,
}

Enum representing the architecture of a process

Variants

Arch8Bit

8-bit architecture

Arch16Bit

16-bit architecture

Arch32Bit

32-bit architecture

Arch64Bit

64-bit architecture

Implementations

impl Architecture[src]

#[must_use]pub fn from_native() -> Architecture[src]

Create an Architecture matching that of the host process.

#[must_use]pub fn pointer_from_ne_bytes(self, bytes: &[u8]) -> usize[src]

Convert bytes read from memory into a pointer in the current architecture.

Trait Implementations

impl Clone for Architecture[src]

impl Copy for Architecture[src]

impl Debug for Architecture[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.