Struct cssparser::ParseError
source · [−]pub struct ParseError<'i, E> {
pub kind: ParseErrorKind<'i, E>,
pub location: SourceLocation,
}
Expand description
Extensible parse errors that can be encountered by client parsing implementations.
Fields
kind: ParseErrorKind<'i, E>
Details of this error
location: SourceLocation
Location where this error occurred
Implementations
sourceimpl<'i, T> ParseError<'i, T>
impl<'i, T> ParseError<'i, T>
sourcepub fn basic(self) -> BasicParseError<'i>
pub fn basic(self) -> BasicParseError<'i>
Extract the fundamental parse error from an extensible error.
sourcepub fn into<U>(self) -> ParseError<'i, U> where
T: Into<U>,
pub fn into<U>(self) -> ParseError<'i, U> where
T: Into<U>,
Like std::convert::Into::into
Trait Implementations
sourceimpl<'i, E: Clone> Clone for ParseError<'i, E>
impl<'i, E: Clone> Clone for ParseError<'i, E>
sourcefn clone(&self) -> ParseError<'i, E>
fn clone(&self) -> ParseError<'i, E>
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, E: Debug> Debug for ParseError<'i, E>
impl<'i, E: Debug> Debug for ParseError<'i, E>
sourceimpl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>
impl<'i, T> From<BasicParseError<'i>> for ParseError<'i, T>
sourcefn from(this: BasicParseError<'i>) -> ParseError<'i, T>
fn from(this: BasicParseError<'i>) -> ParseError<'i, T>
Converts to this type from the input type.
sourceimpl<'i, E: PartialEq> PartialEq<ParseError<'i, E>> for ParseError<'i, E>
impl<'i, E: PartialEq> PartialEq<ParseError<'i, E>> for ParseError<'i, E>
sourcefn eq(&self, other: &ParseError<'i, E>) -> bool
fn eq(&self, other: &ParseError<'i, E>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParseError<'i, E>) -> bool
fn ne(&self, other: &ParseError<'i, E>) -> bool
This method tests for !=
.
impl<'i, E> StructuralPartialEq for ParseError<'i, E>
Auto Trait Implementations
impl<'i, E> RefUnwindSafe for ParseError<'i, E> where
E: RefUnwindSafe,
impl<'i, E> !Send for ParseError<'i, E>
impl<'i, E> !Sync for ParseError<'i, E>
impl<'i, E> Unpin for ParseError<'i, E> where
E: Unpin,
impl<'i, E> UnwindSafe for ParseError<'i, E> where
E: 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