Struct wasmer_compiler::Triple [−][src]
pub struct Triple { pub architecture: Architecture, pub vendor: Vendor, pub operating_system: OperatingSystem, pub environment: Environment, pub binary_format: BinaryFormat, }
Expand description
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: Architecture
The “architecture” (and sometimes the subarchitecture).
vendor: Vendor
The “vendor” (whatever that means).
operating_system: OperatingSystem
The “operating system” (sometimes also the environment).
environment: Environment
The “environment” on top of the operating system (often omitted for operating systems with a single predominant environment).
binary_format: BinaryFormat
The “binary format” (rarely used).
Implementations
impl Triple
[src]
impl Triple
[src]pub fn endianness(&self) -> Result<Endianness, ()>
[src]
pub fn endianness(&self) -> Result<Endianness, ()>
[src]Return the endianness of this target’s architecture.
pub fn pointer_width(&self) -> Result<PointerWidth, ()>
[src]
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]
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]
pub fn data_model(&self) -> Result<CDataModel, ()>
[src]The C data model for a given target. If the model is not known, returns Err(())
.
Trait Implementations
impl Eq for Triple
[src]
impl StructuralEq for Triple
[src]
impl StructuralPartialEq for Triple
[src]
Auto Trait Implementations
impl RefUnwindSafe for Triple
impl Send for Triple
impl Sync for Triple
impl Unpin for Triple
impl UnwindSafe for Triple
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]Converts some archived metadata to the pointer metadata for itself.
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]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more