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]
impl PointerWidth
pub fn bits(&self) -> u8
[src]
pub fn bits(&self) -> u8
Return the number of bits in a pointer.
pub fn bytes(&self) -> u8
[src]
pub fn bytes(&self) -> u8
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 Copy for PointerWidth
impl Clone for PointerWidth
[src]
impl Clone for PointerWidth
fn clone(&self) -> PointerWidth
[src]
fn clone(&self) -> PointerWidth
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for PointerWidth
[src]
impl Debug for PointerWidth
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for PointerWidth
[src]
impl PartialEq for PointerWidth
fn eq(&self, other: &PointerWidth) -> bool
[src]
fn eq(&self, other: &PointerWidth) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for PointerWidth
[src]
impl Eq for PointerWidth
impl Hash for PointerWidth
[src]
impl Hash for PointerWidth
Auto Trait Implementations
impl Send for PointerWidth
impl Send for PointerWidth
impl Sync for PointerWidth
impl Sync for PointerWidth