pub struct Target<'a> {
pub arch: Arch<'a>,
pub endian: Endian<'a>,
pub env: Env<'a>,
pub os: Os<'a>,
pub pointer_width: PointerWidth<'a>,
pub family: Family<'a>,
pub vendor: Vendor<'a>,
pub triple: Cow<'a, str>,
}
Expand description
Combined information about a build target.
Fields§
§arch: Arch<'a>
The architecture of the target, such as x86_64
, aarch64
, or i686
.
endian: Endian<'a>
The endianness of the target architecture, such as little
or big
.
env: Env<'a>
The environment of the target, such as gnu
, msvc
, or none
.
os: Os<'a>
The operating system of the target, such as linux
, windows
, or macos
.
pointer_width: PointerWidth<'a>
The pointer width of the target, such as 32
or 64
.
family: Family<'a>
The family of the target, such as unix
, windows
, or wasm
.
vendor: Vendor<'a>
The vendor of the target, such as apple
, unknown
, or pc
.
triple: Cow<'a, str>
The target triple, which is a string that uniquely identifies the target.
Implementations§
Trait Implementations§
Source§impl<'a> Ord for Target<'a>
impl<'a> Ord for Target<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Target<'a>
impl<'a> PartialOrd for Target<'a>
impl<'a> Eq for Target<'a>
impl<'a> StructuralPartialEq for Target<'a>
Auto Trait Implementations§
impl<'a> Freeze for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnwindSafe for Target<'a>
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