pub enum CssSyntaxError {
UnexpectedEndOfStream(ErrorPos),
InvalidAdvance {
expected: isize,
total: usize,
pos: ErrorPos,
},
UnsupportedToken(ErrorPos),
UnknownToken(ErrorPos),
}
Expand description
List of all supported errors.
Variants§
UnexpectedEndOfStream(ErrorPos)
The steam ended earlier than we expected.
Should only appear on invalid input data.
InvalidAdvance
Can appear during moving along the data stream.
Fields
UnsupportedToken(ErrorPos)
Unsupported token.
UnknownToken(ErrorPos)
Unknown token.
Trait Implementations§
Source§impl<'a> From<Error> for CssParseErrorInner<'a>
impl<'a> From<Error> for CssParseErrorInner<'a>
Source§fn from(e: CssSyntaxError) -> Self
fn from(e: CssSyntaxError) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Error> for CssPathParseError<'a>
impl<'a> From<Error> for CssPathParseError<'a>
Source§fn from(e: CssSyntaxError) -> Self
fn from(e: CssSyntaxError) -> Self
Converts to this type from the input type.
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more