pub struct TargetSelection {
    pub triple: Interned<String>,
    pub file: Option<Interned<String>>,
    pub synthetic: bool,
}Fields§
§triple: Interned<String>§file: Option<Interned<String>>§synthetic: boolImplementations§
Source§impl TargetSelection
 
impl TargetSelection
pub fn from_user(selection: &str) -> Self
pub fn create_synthetic(triple: &str, file: &str) -> Self
pub fn rustc_target_arg(&self) -> &str
pub fn contains(&self, needle: &str) -> bool
pub fn starts_with(&self, needle: &str) -> bool
pub fn ends_with(&self, needle: &str) -> bool
pub fn is_synthetic(&self) -> bool
pub fn is_msvc(&self) -> bool
pub fn is_windows(&self) -> bool
pub fn is_windows_gnu(&self) -> bool
pub fn is_cygwin(&self) -> bool
pub fn needs_crt_begin_end(&self) -> bool
Trait Implementations§
Source§impl AsRef<Path> for TargetSelection
 
impl AsRef<Path> for TargetSelection
Source§impl Clone for TargetSelection
 
impl Clone for TargetSelection
Source§fn clone(&self) -> TargetSelection
 
fn clone(&self) -> TargetSelection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for TargetSelection
 
impl Debug for TargetSelection
Source§impl Default for TargetSelection
 
impl Default for TargetSelection
Source§fn default() -> TargetSelection
 
fn default() -> TargetSelection
Returns the “default value” for a type. Read more
Source§impl Display for TargetSelection
 
impl Display for TargetSelection
Source§impl Hash for TargetSelection
 
impl Hash for TargetSelection
Source§impl Ord for TargetSelection
 
impl Ord for TargetSelection
Source§fn cmp(&self, other: &TargetSelection) -> Ordering
 
fn cmp(&self, other: &TargetSelection) -> Ordering
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 PartialEq<&str> for TargetSelection
 
impl PartialEq<&str> for TargetSelection
Source§impl PartialEq for TargetSelection
 
impl PartialEq for TargetSelection
Source§impl PartialOrd for TargetSelection
 
impl PartialOrd for TargetSelection
impl Copy for TargetSelection
impl Eq for TargetSelection
impl StructuralPartialEq for TargetSelection
Auto Trait Implementations§
impl Freeze for TargetSelection
impl RefUnwindSafe for TargetSelection
impl Send for TargetSelection
impl Sync for TargetSelection
impl Unpin for TargetSelection
impl UnwindSafe for TargetSelection
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<T> Pointable for T
 
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes