Struct ra_ap_ide::StaticIndex
source · pub struct StaticIndex<'a> {
pub files: Vec<StaticIndexedFile>,
pub tokens: TokenStore,
/* private fields */
}
Expand description
A static representation of fully analyzed source code.
The intended use-case is powering read-only code browsers and emitting LSIF/SCIP.
Fields§
§files: Vec<StaticIndexedFile>
§tokens: TokenStore
Implementations§
source§impl StaticIndex<'_>
impl StaticIndex<'_>
pub fn compute(analysis: &Analysis) -> StaticIndex<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StaticIndex<'a>
impl<'a> RefUnwindSafe for StaticIndex<'a>
impl<'a> !Send for StaticIndex<'a>
impl<'a> !Sync for StaticIndex<'a>
impl<'a> Unpin for StaticIndex<'a>
impl<'a> UnwindSafe for StaticIndex<'a>
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.