pub struct Label {
pub span: FullSpan,
pub message: String,
pub primary: bool,
}Expand description
A labeled span for diagnostics.
Fields§
§span: FullSpanThe span being labeled.
message: StringThe message for this label.
primary: boolWhether this is the primary label.
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 UnsafeUnpin 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