pub struct ScopeIndex { /* private fields */ }Expand description
Definition spans for a file, queried per line for the enclosing-definition breadcrumb.
Implementations§
Source§impl ScopeIndex
impl ScopeIndex
pub fn is_empty(&self) -> bool
Sourcepub fn def_starts(&self) -> Vec<usize>
pub fn def_starts(&self) -> Vec<usize>
0-based start rows of every definition, sorted and deduped: the jump targets for function/definition motions.
Trait Implementations§
Source§impl Clone for ScopeIndex
impl Clone for ScopeIndex
Source§impl Debug for ScopeIndex
impl Debug for ScopeIndex
Auto Trait Implementations§
impl Freeze for ScopeIndex
impl RefUnwindSafe for ScopeIndex
impl Send for ScopeIndex
impl Sync for ScopeIndex
impl Unpin for ScopeIndex
impl UnsafeUnpin for ScopeIndex
impl UnwindSafe for ScopeIndex
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