pub struct CssParseError<'a> {
pub css_string: &'a str,
pub error: CssParseErrorInner<'a>,
pub location: ErrorLocationRange,
}Expand description
Error that can happen during the parsing of a CSS value
Fields§
§css_string: &'a str§error: CssParseErrorInner<'a>§location: ErrorLocationRangeImplementations§
Source§impl<'a> CssParseError<'a>
impl<'a> CssParseError<'a>
pub fn to_contained(&self) -> CssParseErrorOwned
Source§impl<'a> CssParseError<'a>
impl<'a> CssParseError<'a>
Sourcepub fn get_error_string(&self) -> &'a str
pub fn get_error_string(&self) -> &'a str
Returns the string between the (start, end) location
Trait Implementations§
Source§impl<'a> Clone for CssParseError<'a>
impl<'a> Clone for CssParseError<'a>
Source§fn clone(&self) -> CssParseError<'a>
fn clone(&self) -> CssParseError<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CssParseError<'a>
impl<'a> Debug for CssParseError<'a>
Source§impl<'a> Display for CssParseError<'a>
impl<'a> Display for CssParseError<'a>
Source§impl<'a> PartialEq for CssParseError<'a>
impl<'a> PartialEq for CssParseError<'a>
Source§fn eq(&self, other: &CssParseError<'a>) -> bool
fn eq(&self, other: &CssParseError<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for CssParseError<'a>
Auto Trait Implementations§
impl<'a> Freeze for CssParseError<'a>
impl<'a> RefUnwindSafe for CssParseError<'a>
impl<'a> Send for CssParseError<'a>
impl<'a> Sync for CssParseError<'a>
impl<'a> Unpin for CssParseError<'a>
impl<'a> UnsafeUnpin for CssParseError<'a>
impl<'a> UnwindSafe for CssParseError<'a>
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