[−][src]Struct rustc_ap_rustc_target::spec::Target
Everything rustc
knows about how to compile for a specific target.
Every field here must be specified, and has no default value.
Fields
llvm_target: String
Target triple to pass to LLVM.
target_endian: String
String to use as the target_endian
cfg
variable.
target_pointer_width: String
String to use as the target_pointer_width
cfg
variable.
target_c_int_width: String
Width of c_int type
target_os: String
OS name to use for conditional compilation.
target_env: String
Environment name to use for conditional compilation.
target_vendor: String
Vendor name to use for conditional compilation.
arch: String
Architecture to use for ABI considerations. Valid options include: "x86", "x86_64", "arm", "aarch64", "mips", "powerpc", "powerpc64", and others.
data_layout: String
Data layout to pass to LLVM.
linker_flavor: LinkerFlavor
Linker flavor
options: TargetOptions
Optional settings with defaults.
Methods
impl Target
[src]
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]
pub fn from_json(obj: Json) -> TargetResult
[src]
Loads a target descriptor from a JSON object.
pub fn search(target_triple: &TargetTriple) -> Result<Target, String>
[src]
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.
Trait Implementations
impl Clone for Target
[src]
impl Debug for Target
[src]
impl HasTargetSpec for Target
[src]
fn target_spec(&self) -> &Target
[src]
impl PartialEq<Target> for Target
[src]
impl StructuralPartialEq for Target
[src]
impl ToJson for Target
[src]
Auto Trait Implementations
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeResult<T> for T
[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T
[src]
fn to_result(Self) -> Result<T, <T as MaybeResult<T>>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,