rustc knows about how to compile for a specific target.
Every field here must be specified, and has no default value.
Target triple to pass to LLVM.
Number of bits in a pointer. Influences the
Architecture to use for ABI considerations. Valid options include: “x86”, “x86_64”, “arm”, “aarch64”, “mips”, “powerpc”, “powerpc64”, and others.
Data layout to pass to LLVM.
Optional settings with defaults.
pub fn adjust_abi(&self, abi: Abi) -> Abi[src]
Given a function ABI, turn it into the correct ABI for this target.
pub fn min_atomic_width(&self) -> u64[src]
Minimum integer size in bits that this target can perform atomic operations on.
pub fn max_atomic_width(&self) -> u64[src]
Maximum integer size in bits that this target can perform atomic operations on.
pub fn is_abi_supported(&self, abi: Abi) -> bool[src]
Loads a target descriptor from a JSON object.
Search RUST_TARGET_PATH for a JSON file specifying the given target triple. Note that it could also just be a bare filename already, so also check for that. If one of the hardcoded targets we know about, just return it directly.
The error string could come from any of the APIs called, including filesystem access and JSON decoding.
TargetOptions being a separate type is basically an implementation detail of
Target that is
used for providing defaults. Perhaps there’s a way to merge
Deref implementation is no longer necessary.
type Target = TargetOptions
The resulting type after dereferencing.
impl HasTargetSpec for Target[src]
impl StructuralPartialEq for Target[src]
Auto Trait Implementations
impl RefUnwindSafe for Target
impl UnwindSafe for Target
impl<T> MaybeResult<T> for T[src]
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(Self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.