struct LsifManager<'a, 'w> {
count: i32,
token_map: FxHashMap<TokenId, Id>,
range_map: FxHashMap<FileRange, Id>,
file_map: FxHashMap<FileId, Id>,
package_map: FxHashMap<PackageInformation, Id>,
analysis: &'a Analysis,
db: &'a RootDatabase,
vfs: &'a Vfs,
out: &'w mut dyn Write,
}Fields§
§count: i32§token_map: FxHashMap<TokenId, Id>§range_map: FxHashMap<FileRange, Id>§file_map: FxHashMap<FileId, Id>§package_map: FxHashMap<PackageInformation, Id>§analysis: &'a Analysis§db: &'a RootDatabase§vfs: &'a Vfs§out: &'w mut dyn WriteImplementations§
Source§impl LsifManager<'_, '_>
impl LsifManager<'_, '_>
fn new<'a, 'w>( analysis: &'a Analysis, db: &'a RootDatabase, vfs: &'a Vfs, out: &'w mut dyn Write, ) -> LsifManager<'a, 'w>
fn add(&mut self, data: Element) -> Id
fn add_vertex(&mut self, vertex: Vertex) -> Id
fn add_edge(&mut self, edge: Edge) -> Id
fn emit(&mut self, data: &str)
fn get_token_id(&mut self, id: TokenId) -> Id
fn get_package_id(&mut self, package_information: PackageInformation) -> Id
fn get_range_id(&mut self, id: FileRange) -> Id
fn get_file_id(&mut self, id: FileId) -> Id
fn add_token(&mut self, id: TokenId, token: TokenStaticData)
fn add_file(&mut self, file: StaticIndexedFile)
Auto Trait Implementations§
impl<'a, 'w> Freeze for LsifManager<'a, 'w>
impl<'a, 'w> !RefUnwindSafe for LsifManager<'a, 'w>
impl<'a, 'w> !Send for LsifManager<'a, 'w>
impl<'a, 'w> !Sync for LsifManager<'a, 'w>
impl<'a, 'w> Unpin for LsifManager<'a, 'w>
impl<'a, 'w> UnsafeUnpin for LsifManager<'a, 'w>
impl<'a, 'w> !UnwindSafe for LsifManager<'a, 'w>
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, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§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