pub struct Label {
pub message: String,
pub span: Span,
}Expand description
A secondary label pointing to related code.
Labels appear as additional annotations in the source snippet, helping users understand the relationship between different parts of code.
Fields§
§message: StringThe message explaining this location’s relevance.
span: SpanThe source location to highlight.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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