Enum target_lexicon::PointerWidth
[−]
[src]
pub enum PointerWidth { U16, U32, U64, }
The width of a pointer (in the default address space).
Variants
U16
U32
U64
Methods
impl PointerWidth
[src]
pub fn bits(&self) -> u8
[src]
Return the number of bits in a pointer.
pub fn bytes(&self) -> u8
[src]
Return the number of bytes in a pointer.
For these purposes, there are 8 bits in a byte.
Trait Implementations
impl Copy for PointerWidth
[src]
impl Clone for PointerWidth
[src]
fn clone(&self) -> PointerWidth
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PointerWidth
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for PointerWidth
[src]
fn eq(&self, __arg_0: &PointerWidth) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.