Enum titanium::desktop::memory::Architecture
pub enum Architecture {
Arch8Bit,
Arch16Bit,
Arch32Bit,
Arch64Bit,
}
Expand description
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
impl Architecture
pub fn from_native() -> Architecture
pub fn from_native() -> Architecture
Create an Architecture matching that of the host process.
pub 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§
§impl Clone for Architecture
impl Clone for Architecture
§fn clone(&self) -> Architecture
fn clone(&self) -> 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 more§impl Debug for Architecture
impl Debug for Architecture
impl Copy for Architecture
Auto Trait Implementations§
impl RefUnwindSafe for Architecture
impl Send for Architecture
impl Sync for Architecture
impl Unpin for Architecture
impl UnwindSafe for Architecture
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.