[][src]Enum cfg_expr::error::Reason

pub enum Reason {
    InvalidNot(u8),
    InvalidCharacters,
    UnclosedParens,
    UnopenedParens,
    UnclosedQuotes,
    UnopenedQuotes,
    Empty,
    Unexpected(&'static [&'static str]),
    InvalidInteger,
    MultipleRootPredicates,
}

The particular reason for a ParseError

Variants

InvalidNot(u8)

not() takes exactly 1 predicate, unlike all() and any()

InvalidCharacters

The characters are not valid in an SDPX license expression

UnclosedParens

An opening parens was unmatched with a closing parens

UnopenedParens

A closing parens was unmatched with an opening parens

UnclosedQuotes

An opening quotes was unmatched with a closing quotes

UnopenedQuotes

A closing quotes was unmatched with an opening quotes

Empty

The expression does not contain any valid terms

Unexpected(&'static [&'static str])

Found an unexpected term, which wasn't one of the expected terms that is listed

InvalidInteger

Failed to parse an integer value

MultipleRootPredicates

The root cfg() may only contain a single predicate

Trait Implementations

impl Debug for Reason[src]

impl Display for Reason[src]

impl PartialEq<Reason> for Reason[src]

impl StructuralPartialEq for Reason[src]

Auto Trait Implementations

impl RefUnwindSafe for Reason

impl Send for Reason

impl Sync for Reason

impl Unpin for Reason

impl UnwindSafe for Reason

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.