pub struct CssError {
pub span: Span,
pub kind: CssErrorKind,
}Fields§
§span: Span§kind: CssErrorKindImplementations§
Source§impl CssError
impl CssError
pub fn from_parse_error( from: ParseError, is_recoverable: bool, is_deep: bool, ) -> CssError
Trait Implementations§
Source§impl Severity for CssError
impl Severity for CssError
fn get_severity(&self) -> SeverityLevel
Source§fn is_recoverable_error(&self) -> bool
fn is_recoverable_error(&self) -> bool
Returns
true if the severity level is RecoverableError.Source§fn is_unrecoverable_error(&self) -> bool
fn is_unrecoverable_error(&self) -> bool
Returns
true if the severity level is UnrecoverableError.Source§fn is_warning(&self) -> bool
fn is_warning(&self) -> bool
Returns
true if the severity level is Warning.Auto Trait Implementations§
impl Freeze for CssError
impl RefUnwindSafe for CssError
impl Send for CssError
impl Sync for CssError
impl Unpin for CssError
impl UnwindSafe for CssError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SpanExt for Twhere
T: Spanned,
impl<T> SpanExt for Twhere
T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
Source§fn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.