Struct rustc_span::SpanLabel [−][src]
Expand description
A span together with some additional data.
Fields
span: SpanExpand description
The span we are going to include in the final snippet.
is_primary: boolExpand description
Is this a primary span? This is the “locus” of the message,
and is indicated with a ^^^^ underline, versus ----.
label: Option<String>Expand description
What label should we attach to this span (if any)?
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpanLabel
impl !Send for SpanLabel
impl !Sync for SpanLabel
impl Unpin for SpanLabel
impl UnwindSafe for SpanLabel
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more