pub struct ScopeIndex { /* private fields */ }Expand description
Read-side scope lookup loaded once per command.
Implementations§
Source§impl ScopeIndex
impl ScopeIndex
pub fn scope_of(&self, node: &Node) -> CorpusScope
pub fn scope_of_id(&self, id: &str, file: &str) -> CorpusScope
Sourcepub fn file_scope(&self, file: &str) -> CorpusScope
pub fn file_scope(&self, file: &str) -> CorpusScope
File-level scope only (path/override based); node overrides ignored.
Trait Implementations§
Source§impl Clone for ScopeIndex
impl Clone for ScopeIndex
Source§fn clone(&self) -> ScopeIndex
fn clone(&self) -> ScopeIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScopeIndex
impl Debug for ScopeIndex
Source§impl Default for ScopeIndex
impl Default for ScopeIndex
Source§fn default() -> ScopeIndex
fn default() -> ScopeIndex
Returns the “default value” for a type. Read more
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