[][src]Enum casco::cascade::Error

pub enum Error<S> where
    S: TokenStream
{ MissingPropertyName(S::Span), MissingColon(S::Span), MissingPropertyValue(S::Span), MissingSelector(S::Span), MissingRuleGroup(S::Span), }

Type of error that is returned during validation.

Variants

MissingPropertyName(S::Span)

This error is returned when a property's name is missing. The span points to the token that was encountered instead.

MissingColon(S::Span)

This error is returned when a : is missing. The span points to the token that was encountered instead.

MissingPropertyValue(S::Span)

This error is returned when a property's value is missing. The span points to the token that was encountered instead.

MissingSelector(S::Span)

This error is returned when a selector is missing. The span points to the token that was encountered instead (which will always be the { ... } group).

MissingRuleGroup(S::Span)

This error is returned when a rule block is missing. The span points to the last selector that was encountered before the rule group was expected.

Trait Implementations

impl<S> Debug for Error<S> where
    S: TokenStream
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Error<S> where
    <S as TokenStream>::Span: RefUnwindSafe

impl<S> Send for Error<S> where
    <S as TokenStream>::Span: Send

impl<S> Sync for Error<S> where
    <S as TokenStream>::Span: Sync

impl<S> Unpin for Error<S> where
    <S as TokenStream>::Span: Unpin

impl<S> UnwindSafe for Error<S> where
    <S as TokenStream>::Span: UnwindSafe

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, 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.