Enum cssparser::ParseErrorKind
source · [−]pub enum ParseErrorKind<'i, T: 'i> {
Basic(BasicParseErrorKind<'i>),
Custom(T),
}
Expand description
Details of a ParseError
Variants
Basic(BasicParseErrorKind<'i>)
A fundamental parse error from a built-in parsing routine.
Custom(T)
A parse error reported by downstream consumer code.
Implementations
sourceimpl<'i, T> ParseErrorKind<'i, T>
impl<'i, T> ParseErrorKind<'i, T>
sourcepub fn into<U>(self) -> ParseErrorKind<'i, U> where
T: Into<U>,
pub fn into<U>(self) -> ParseErrorKind<'i, U> where
T: Into<U>,
Like std::convert::Into::into
Trait Implementations
sourceimpl<'i, T: Clone + 'i> Clone for ParseErrorKind<'i, T>
impl<'i, T: Clone + 'i> Clone for ParseErrorKind<'i, T>
sourcefn clone(&self) -> ParseErrorKind<'i, T>
fn clone(&self) -> ParseErrorKind<'i, T>
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, T: Debug + 'i> Debug for ParseErrorKind<'i, T>
impl<'i, T: Debug + 'i> Debug for ParseErrorKind<'i, T>
sourceimpl<'i, T: PartialEq + 'i> PartialEq<ParseErrorKind<'i, T>> for ParseErrorKind<'i, T>
impl<'i, T: PartialEq + 'i> PartialEq<ParseErrorKind<'i, T>> for ParseErrorKind<'i, T>
sourcefn eq(&self, other: &ParseErrorKind<'i, T>) -> bool
fn eq(&self, other: &ParseErrorKind<'i, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParseErrorKind<'i, T>) -> bool
fn ne(&self, other: &ParseErrorKind<'i, T>) -> bool
This method tests for !=
.
impl<'i, T: 'i> StructuralPartialEq for ParseErrorKind<'i, T>
Auto Trait Implementations
impl<'i, T> RefUnwindSafe for ParseErrorKind<'i, T> where
T: RefUnwindSafe,
impl<'i, T> !Send for ParseErrorKind<'i, T>
impl<'i, T> !Sync for ParseErrorKind<'i, T>
impl<'i, T> Unpin for ParseErrorKind<'i, T> where
T: Unpin,
impl<'i, T> UnwindSafe for ParseErrorKind<'i, T> where
T: UnwindSafe,
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