Struct bootstrap::config::TargetSelection
source · pub struct TargetSelection {
pub triple: Interned<String>,
file: Option<Interned<String>>,
synthetic: bool,
}
Fields§
§triple: Interned<String>
§file: Option<Interned<String>>
§synthetic: bool
Implementations§
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
Trait Implementations§
source§impl Clone for TargetSelection
impl Clone for TargetSelection
source§fn clone(&self) -> TargetSelection
fn clone(&self) -> TargetSelection
Returns a copy 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<TargetSelection> for TargetSelection
impl PartialEq<TargetSelection> for TargetSelection
source§fn eq(&self, other: &TargetSelection) -> bool
fn eq(&self, other: &TargetSelection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TargetSelection> for TargetSelection
impl PartialOrd<TargetSelection> for TargetSelection
source§fn partial_cmp(&self, other: &TargetSelection) -> Option<Ordering>
fn partial_cmp(&self, other: &TargetSelection) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TargetSelection
impl Eq for TargetSelection
impl StructuralEq for TargetSelection
impl StructuralPartialEq for TargetSelection
Auto Trait Implementations§
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
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