struct LabelTarget {
kind: LabelTargetKind,
span: SourceSpan,
}Expand description
An entry in the label → target index.
span is the declaration site, retained so duplicate-label
diagnostics can still point a “first declared here” note at the
original occurrence without re-looking-up the node by id.
Fields§
§kind: LabelTargetKind§span: SourceSpanTrait Implementations§
Source§impl Clone for LabelTarget
impl Clone for LabelTarget
Source§fn clone(&self) -> LabelTarget
fn clone(&self) -> LabelTarget
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 LabelTarget
impl RefUnwindSafe for LabelTarget
impl Send for LabelTarget
impl Sync for LabelTarget
impl Unpin for LabelTarget
impl UnsafeUnpin for LabelTarget
impl UnwindSafe for LabelTarget
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