pub struct LabelInfo {
pub name: String,
pub scope: Option<(Vec<usize>, Span)>,
pub from: Vec<(Vec<usize>, Span)>,
}Expand description
label information.
Fields§
§name: String§scope: Option<(Vec<usize>, Span)>Scope tree of this label. In goto statement, destination label must be parent (prefix) of current scope.
from: Vec<(Vec<usize>, Span)>where goto statement is called
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LabelInfo
impl RefUnwindSafe for LabelInfo
impl Send for LabelInfo
impl Sync for LabelInfo
impl Unpin for LabelInfo
impl UnwindSafe for LabelInfo
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