pub struct CollectorDiagnostic {
pub severity: ResolvedDiagnosticLevel,
pub span: Span,
pub message: String,
}Expand description
A diagnostic produced by the collector for a matched rule.
Fields§
§severity: ResolvedDiagnosticLevelSeverity of the diagnostic
span: SpanSpan of the matched node in the CSS source
message: StringResolved diagnostic message
Implementations§
Source§impl CollectorDiagnostic
impl CollectorDiagnostic
Sourcepub fn new(
severity: ResolvedDiagnosticLevel,
span: Span,
message: String,
) -> Self
pub fn new( severity: ResolvedDiagnosticLevel, span: Span, message: String, ) -> Self
Create a new collector diagnostic.
Trait Implementations§
Source§impl Clone for CollectorDiagnostic
impl Clone for CollectorDiagnostic
Source§fn clone(&self) -> CollectorDiagnostic
fn clone(&self) -> CollectorDiagnostic
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CollectorDiagnostic
impl RefUnwindSafe for CollectorDiagnostic
impl Send for CollectorDiagnostic
impl Sync for CollectorDiagnostic
impl Unpin for CollectorDiagnostic
impl UnsafeUnpin for CollectorDiagnostic
impl UnwindSafe for CollectorDiagnostic
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