struct GraphSymbolIndex<'graph> {
indices_by_name: BTreeMap<&'graph str, Vec<usize>>,
}Expand description
Borrowed per-graph symbol lookup used by every relation in that file.
Fields§
§indices_by_name: BTreeMap<&'graph str, Vec<usize>>Parser symbol indices grouped by exact source name.
Implementations§
Source§impl<'graph> GraphSymbolIndex<'graph>
impl<'graph> GraphSymbolIndex<'graph>
Sourcefn new(
graph: &'graph SymbolGraph,
control: &IndexWorkControl,
) -> Result<Self, CliError>
fn new( graph: &'graph SymbolGraph, control: &IndexWorkControl, ) -> Result<Self, CliError>
Build one bounded name index instead of rescanning all symbols per relation.
Auto Trait Implementations§
impl<'graph> Freeze for GraphSymbolIndex<'graph>
impl<'graph> RefUnwindSafe for GraphSymbolIndex<'graph>
impl<'graph> Send for GraphSymbolIndex<'graph>
impl<'graph> Sync for GraphSymbolIndex<'graph>
impl<'graph> Unpin for GraphSymbolIndex<'graph>
impl<'graph> UnwindSafe for GraphSymbolIndex<'graph>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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