Struct target_lexicon::Triple [−][src]
pub struct Triple {
pub architecture: Architecture,
pub vendor: Vendor,
pub operating_system: OperatingSystem,
pub environment: Environment,
pub binary_format: BinaryFormat,
}A target “triple”. Historically such things had three fields, though they’ve added additional fields over time.
Note that Triple doesn’t implement Default itself. If you want a type
which defaults to the host triple, or defaults to unknown-unknown-unknown,
use DefaultToHost or DefaultToUnknown, respectively.
Fields
architecture: ArchitectureThe “architecture” (and sometimes the subarchitecture).
vendor: VendorThe “vendor” (whatever that means).
operating_system: OperatingSystemThe “operating system” (sometimes also the environment).
environment: EnvironmentThe “environment” on top of the operating system (often omitted for operating systems with a single predominant environment).
binary_format: BinaryFormatThe “binary format” (rarely used).
Implementations
impl Triple[src]
impl Triple[src]pub fn endianness(&self) -> Result<Endianness, ()>[src]
Return the endianness of this target’s architecture.
pub fn pointer_width(&self) -> Result<PointerWidth, ()>[src]
Return the pointer width of this target’s architecture.
pub fn default_calling_convention(&self) -> Result<CallingConvention, ()>[src]
Return the default calling convention for the given target triple.
pub fn data_model(&self) -> Result<CDataModel, ()>[src]
The C data model for a given target. If the model is not known, returns Err(()).
pub fn unknown() -> Self[src]
Return a Triple with all unknown fields.
Trait Implementations
impl Clone for Triple[src]
impl Clone for Triple[src]fn clone(&self) -> Triple[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Eq for Triple[src]
impl StructuralEq for Triple[src]
impl StructuralPartialEq for Triple[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
The resulting type after obtaining ownership.