Struct llvm_ir::module::PointerLayout
source · pub struct PointerLayout {
pub size: u32,
pub alignment: Alignment,
pub index_size: u32,
}
Expand description
Layout details for pointers (other than function pointers). See LLVM 14 docs on Data Layout
Fields§
§size: u32
Size of a pointer in bits
alignment: Alignment
Alignment of a pointer
index_size: u32
Size of an index used for address calculation, in bits
Trait Implementations§
source§impl Clone for PointerLayout
impl Clone for PointerLayout
source§fn clone(&self) -> PointerLayout
fn clone(&self) -> PointerLayout
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 PointerLayout
impl Debug for PointerLayout
source§impl PartialEq<PointerLayout> for PointerLayout
impl PartialEq<PointerLayout> for PointerLayout
source§fn eq(&self, other: &PointerLayout) -> bool
fn eq(&self, other: &PointerLayout) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PointerLayout
impl StructuralEq for PointerLayout
impl StructuralPartialEq for PointerLayout
Auto Trait Implementations§
impl RefUnwindSafe for PointerLayout
impl Send for PointerLayout
impl Sync for PointerLayout
impl Unpin for PointerLayout
impl UnwindSafe for PointerLayout
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more