Struct stable_mir::target::MachineInfo
source · pub struct MachineInfo {
pub endian: Endian,
pub pointer_width: MachineSize,
}
Expand description
The properties of the target machine being compiled into.
Fields§
§endian: Endian
§pointer_width: MachineSize
Implementations§
source§impl MachineInfo
impl MachineInfo
pub fn target() -> MachineInfo
pub fn target_endianness() -> Endian
pub fn target_pointer_width() -> MachineSize
Trait Implementations§
source§impl Clone for MachineInfo
impl Clone for MachineInfo
source§fn clone(&self) -> MachineInfo
fn clone(&self) -> MachineInfo
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 PartialEq for MachineInfo
impl PartialEq for MachineInfo
source§impl Serialize for MachineInfo
impl Serialize for MachineInfo
impl Eq for MachineInfo
impl StructuralPartialEq for MachineInfo
Auto Trait Implementations§
impl Freeze for MachineInfo
impl RefUnwindSafe for MachineInfo
impl Send for MachineInfo
impl Sync for MachineInfo
impl Unpin for MachineInfo
impl UnwindSafe for MachineInfo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes