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,
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