Struct inkwell::AddressSpace
source · pub struct AddressSpace(_);
Expand description
Defines the address space in which a global will be inserted.
The default address space is zero. An address space can always be created from a u16
:
inkwell::AddressSpace::from(1u16);
An Address space is a 24-bit number. To convert from a u32, use the TryFrom
instance
inkwell::AddressSpace::try_from(42u32).expect("fits in 24-bit unsigned int");
Remarks
See also: https://llvm.org/doxygen/NVPTXBaseInfo_8h_source.html
Trait Implementations§
source§impl Clone for AddressSpace
impl Clone for AddressSpace
source§fn clone(&self) -> AddressSpace
fn clone(&self) -> AddressSpace
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 moresource§impl Debug for AddressSpace
impl Debug for AddressSpace
source§impl Default for AddressSpace
impl Default for AddressSpace
source§impl From<u16> for AddressSpace
impl From<u16> for AddressSpace
source§impl PartialEq<AddressSpace> for AddressSpace
impl PartialEq<AddressSpace> for AddressSpace
source§fn eq(&self, other: &AddressSpace) -> bool
fn eq(&self, other: &AddressSpace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.