[−][src]Enum casco::cascade::Error
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]
S: TokenStream,
Auto Trait Implementations
impl<S> RefUnwindSafe for Error<S> where
<S as TokenStream>::Span: RefUnwindSafe,
<S as TokenStream>::Span: RefUnwindSafe,
impl<S> Send for Error<S> where
<S as TokenStream>::Span: Send,
<S as TokenStream>::Span: Send,
impl<S> Sync for Error<S> where
<S as TokenStream>::Span: Sync,
<S as TokenStream>::Span: Sync,
impl<S> Unpin for Error<S> where
<S as TokenStream>::Span: Unpin,
<S as TokenStream>::Span: Unpin,
impl<S> UnwindSafe for Error<S> where
<S as TokenStream>::Span: UnwindSafe,
<S as TokenStream>::Span: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,