pub struct SymbolLookupEvent {
pub name: String,
pub scope_path: Vec<String>,
pub found: bool,
pub symbol_id: Option<SymbolId>,
pub found_in_file: Option<String>,
}Expand description
A record of a symbol lookup event.
Fields§
§name: StringThe name being looked up
scope_path: Vec<String>The scope path searched (from innermost to outermost)
found: boolWhether the lookup was successful
symbol_id: Option<SymbolId>The symbol ID if found
found_in_file: Option<String>The file where the symbol was found (if any)
Trait Implementations§
Source§impl Clone for SymbolLookupEvent
impl Clone for SymbolLookupEvent
Source§fn clone(&self) -> SymbolLookupEvent
fn clone(&self) -> SymbolLookupEvent
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 SymbolLookupEvent
impl RefUnwindSafe for SymbolLookupEvent
impl Send for SymbolLookupEvent
impl Sync for SymbolLookupEvent
impl Unpin for SymbolLookupEvent
impl UnsafeUnpin for SymbolLookupEvent
impl UnwindSafe for SymbolLookupEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more