Enum guppy::TargetSpecError [−][src]
#[non_exhaustive]
pub enum TargetSpecError {
InvalidExpression(ExpressionParseError),
UnknownTargetTriple(TripleParseError),
UnknownPlatformTriple(TripleParseError),
UnknownPredicate(String),
}
Expand description
An error that happened during target-spec
parsing or evaluation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidExpression(ExpressionParseError)
A cfg()
expression was invalid and could not be parsed.
Tuple Fields of InvalidExpression
UnknownTargetTriple(TripleParseError)
The provided target triple (in the position that a cfg()
expression would be) was unknown.
Tuple Fields of UnknownTargetTriple
UnknownPlatformTriple(TripleParseError)
The provided platform triple was unknown.
Tuple Fields of UnknownPlatformTriple
UnknownPredicate(String)
The provided cfg()
expression parsed correctly, but it had an unknown predicate.
Tuple Fields of UnknownPredicate
0: String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more