pub struct LabelSpan {
pub name: String,
pub name_pos: LineCol,
}
Expand description
Components of a label “statement”.
In principle, labels should be just a property of a statement but, for simplicity in the current model, it’s easiest to represent them as their own statement.
Fields§
§name: String
Name of the label being defined.
name_pos: LineCol
Position of the label.
Trait Implementations§
impl Eq for LabelSpan
impl StructuralPartialEq for LabelSpan
Auto Trait Implementations§
impl Freeze for LabelSpan
impl RefUnwindSafe for LabelSpan
impl Send for LabelSpan
impl Sync for LabelSpan
impl Unpin for LabelSpan
impl UnwindSafe for LabelSpan
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