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
sourceimpl 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
sourceimpl Debug for TripleParseError
impl Debug for TripleParseError
sourceimpl Display for TripleParseError
impl Display for TripleParseError
sourceimpl Error for TripleParseError
impl Error for TripleParseError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<TripleParseError> for TripleParseError
impl PartialEq<TripleParseError> for TripleParseError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &TripleParseError) -> bool
fn ne(&self, other: &TripleParseError) -> bool
This method tests for !=
.
impl StructuralPartialEq for TripleParseError
Auto Trait Implementations
impl RefUnwindSafe for TripleParseError
impl Send for TripleParseError
impl Sync for TripleParseError
impl Unpin for TripleParseError
impl UnwindSafe for TripleParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more