pub struct WarnEvent<'a> {
pub kind: WarnKind,
pub deprecation: bool,
pub deprecation_id: &'a str,
pub message: &'a str,
pub formatted: &'a str,
pub url: &'a str,
pub line: usize,
}Expand description
A @warn / @debug / deprecation diagnostic delivered to an embedder’s
WarnHandler (dart-sass logger).
Fields§
§kind: WarnKindWarning vs debug.
deprecation: boolTrue for a deprecation warning.
deprecation_id: &'a strThe deprecation id (e.g. "slash-div"), or "" when not a deprecation.
message: &'a strThe raw message text (the @warn/@debug value, or deprecation message).
formatted: &'a strThe full dart-style block sasso would otherwise print to stderr (header + snippet + stack trace), for a faithful default logger.
url: &'a strThe source URL for the diagnostic’s span; "" when not available.
line: usizeThe 1-based line for the diagnostic’s span; 0 when not available.
Auto Trait Implementations§
impl<'a> Freeze for WarnEvent<'a>
impl<'a> RefUnwindSafe for WarnEvent<'a>
impl<'a> Send for WarnEvent<'a>
impl<'a> Sync for WarnEvent<'a>
impl<'a> Unpin for WarnEvent<'a>
impl<'a> UnsafeUnpin for WarnEvent<'a>
impl<'a> UnwindSafe for WarnEvent<'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