pub struct DataLayout {
pub layout_str: String,
pub endianness: Endianness,
pub stack_alignment: Option<u32>,
pub program_address_space: AddrSpace,
pub alloca_address_space: AddrSpace,
pub alignments: Alignments,
pub mangling: Option<Mangling>,
pub native_int_widths: Option<HashSet<u32>>,
pub non_integral_ptr_types: HashSet<AddrSpace>,
}Expand description
Fields§
§layout_str: StringThe data layout in string form, as described in the Data Layout docs linked above
endianness: EndiannessLittle-endian or big-endian?
stack_alignment: Option<u32>Natural alignment of the stack, in bits. For more, see the Data Layout docs linked above
program_address_space: AddrSpaceAddress space for program memory
alloca_address_space: AddrSpaceAddress space for objects created by alloca
alignments: AlignmentsAlignment for various types in memory
mangling: Option<Mangling>What mangling will be applied when the LLVM module is compiled to machine code
native_int_widths: Option<HashSet<u32>>Native integer width(s) for the target CPU
non_integral_ptr_types: HashSet<AddrSpace>Address spaces with non-integral pointer types
Trait Implementations§
Source§impl Clone for DataLayout
impl Clone for DataLayout
Source§fn clone(&self) -> DataLayout
fn clone(&self) -> DataLayout
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 DataLayout
impl Debug for DataLayout
Source§impl Default for DataLayout
impl Default for DataLayout
Source§impl PartialEq for DataLayout
impl PartialEq for DataLayout
impl Eq for DataLayout
Auto Trait Implementations§
impl Freeze for DataLayout
impl RefUnwindSafe for DataLayout
impl Send for DataLayout
impl Sync for DataLayout
impl Unpin for DataLayout
impl UnwindSafe for DataLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more