Enum cssparser::BasicParseErrorKind
source · [−]pub enum BasicParseErrorKind<'i> {
UnexpectedToken(Token<'i>),
EndOfInput,
AtRuleInvalid(CowRcStr<'i>),
AtRuleBodyInvalid,
QualifiedRuleInvalid,
}
Expand description
Details about a BasicParseError
Variants
UnexpectedToken(Token<'i>)
An unexpected token was encountered.
EndOfInput
The end of the input was encountered unexpectedly.
AtRuleInvalid(CowRcStr<'i>)
An @
rule was encountered that was invalid.
AtRuleBodyInvalid
The body of an ‘@’ rule was invalid.
QualifiedRuleInvalid
A qualified rule was encountered that was invalid.
Trait Implementations
sourceimpl<'i> Clone for BasicParseErrorKind<'i>
impl<'i> Clone for BasicParseErrorKind<'i>
sourcefn clone(&self) -> BasicParseErrorKind<'i>
fn clone(&self) -> BasicParseErrorKind<'i>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'i> Debug for BasicParseErrorKind<'i>
impl<'i> Debug for BasicParseErrorKind<'i>
sourceimpl<'i> PartialEq<BasicParseErrorKind<'i>> for BasicParseErrorKind<'i>
impl<'i> PartialEq<BasicParseErrorKind<'i>> for BasicParseErrorKind<'i>
sourcefn eq(&self, other: &BasicParseErrorKind<'i>) -> bool
fn eq(&self, other: &BasicParseErrorKind<'i>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BasicParseErrorKind<'i>) -> bool
fn ne(&self, other: &BasicParseErrorKind<'i>) -> bool
This method tests for !=
.
impl<'i> StructuralPartialEq for BasicParseErrorKind<'i>
Auto Trait Implementations
impl<'i> RefUnwindSafe for BasicParseErrorKind<'i>
impl<'i> !Send for BasicParseErrorKind<'i>
impl<'i> !Sync for BasicParseErrorKind<'i>
impl<'i> Unpin for BasicParseErrorKind<'i>
impl<'i> UnwindSafe for BasicParseErrorKind<'i>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more