pub struct Label {
pub name: Symbol,
pub stmt: Option<StmtId>,
}Expand description
A label, and the statement it names.
Fields§
§name: SymbolThe name it was written with.
stmt: Option<StmtId>The statement it labels, absent for a label that was used and never defined, which is a diagnostic rather than a reason to lose the reference.
Trait Implementations§
impl Copy for Label
impl Eq for Label
impl StructuralPartialEq for Label
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