Struct target_spec::errors::TripleParseError
source · pub struct TripleParseError { /* private fields */ }Expand description
An error returned while parsing a single target.
This is caused by a triple not being understood by either cfg-expr or target-lexicon.
Implementations§
source§impl TripleParseError
impl TripleParseError
sourcepub fn triple_str(&self) -> &str
pub fn triple_str(&self) -> &str
Returns the triple string that could not be parsed.
Trait Implementations§
source§impl Clone for TripleParseError
impl Clone for TripleParseError
source§fn clone(&self) -> TripleParseError
fn clone(&self) -> TripleParseError
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 TripleParseError
impl Debug for TripleParseError
source§impl Display for TripleParseError
impl Display for TripleParseError
source§impl Error for TripleParseError
impl Error for TripleParseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<TripleParseError> for TripleParseError
impl PartialEq<TripleParseError> for TripleParseError
source§fn eq(&self, other: &TripleParseError) -> bool
fn eq(&self, other: &TripleParseError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.