pub struct ScopeData { /* private fields */ }
Implementations
sourceimpl ScopeData
impl ScopeData
pub fn is_module_closure(&self) -> bool
pub fn self_or_ancestor_closure(&self) -> Option<ScopeId>
pub fn add_symbol(
&mut self,
identifier: Identifier,
symbol: Symbol
) -> SyntaxResult<()>
pub fn add_block_symbol(
&mut self,
identifier: Identifier,
symbol: Symbol
) -> SyntaxResult<()>
pub fn find_symbol<'a>(
&'a self,
scope_map: &'a ScopeMap,
identifier: &'a Identifier
) -> Option<&'a Symbol>
pub fn symbol_count(&self) -> usize
pub fn symbols_iter<'a>(&'a self) -> impl Iterator<Item = SymbolId> + 'a
pub fn parent(&self) -> Option<ScopeId>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ScopeData
impl !Send for ScopeData
impl !Sync for ScopeData
impl Unpin for ScopeData
impl UnwindSafe for ScopeData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more