pub struct ScopeIndex { /* private fields */ }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.
Sourcepub fn def_span(&self, name: &str) -> Option<(usize, usize)>
pub fn def_span(&self, name: &str) -> Option<(usize, usize)>
0-based inclusive row span of the definition called name.
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