pub struct LocalSymbolOccurrence {
pub symbol_id: usize,
pub name: String,
pub is_declaration: bool,
pub span: SourceSpan,
}Expand description
One local-symbol occurrence discovered during checking.
Fields§
§symbol_id: usizeStable index into CheckedProgram::local_symbols.
name: StringUser-visible binding name.
is_declaration: boolWhether this occurrence is the binding declaration.
span: SourceSpanSource span covering the identifier token.
Trait Implementations§
Source§impl Clone for LocalSymbolOccurrence
impl Clone for LocalSymbolOccurrence
Source§fn clone(&self) -> LocalSymbolOccurrence
fn clone(&self) -> LocalSymbolOccurrence
Returns a copy 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 LocalSymbolOccurrence
impl RefUnwindSafe for LocalSymbolOccurrence
impl Send for LocalSymbolOccurrence
impl Sync for LocalSymbolOccurrence
impl Unpin for LocalSymbolOccurrence
impl UnwindSafe for LocalSymbolOccurrence
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