pub struct Target {
pub arch: Arch,
pub endian: Endian,
pub env: Option<Env>,
pub os: Os,
pub pointer_width: PointerWidth,
pub family: Vec<Family>,
pub vendor: Vendor,
pub triple: String,
}Expand description
Combined information about a build target.
Fields§
§arch: ArchThe architecture of the target, such as x86_64, aarch64, or i686.
endian: EndianThe endianness of the target architecture, such as little or big.
env: Option<Env>The environment of the target, such as gnu, msvc, or none.
os: OsThe operating system of the target, such as linux, windows, or macos.
pointer_width: PointerWidthThe pointer width of the target, such as 32 or 64.
family: Vec<Family>The family of the target, such as unix, windows, or wasm.
vendor: VendorThe vendor of the target, such as apple, unknown, or pc.
triple: StringThe target triple, which is a string that uniquely identifies the target.
Implementations§
Trait Implementations§
Source§impl Ord for Target
impl Ord for Target
Source§impl PartialOrd for Target
impl PartialOrd for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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