pub struct Scopes {
pub scopes: Vec<Scope>,
pub closure_scopes: RefCell<HashMap<ClosureDefIndex, Vec<Scope>>>,
pub closure_sites: RefCell<Vec<ClosureSite>>,
}
Fields§
§scopes: Vec<Scope>
§closure_scopes: RefCell<HashMap<ClosureDefIndex, Vec<Scope>>>
§closure_sites: RefCell<Vec<ClosureSite>>
Implementations§
Source§impl Scopes
impl Scopes
pub fn new() -> Scopes
pub fn find_sym_on_scopes( &self, ident: Ident, _span: TokenSpan, ) -> Option<&ScopeSym>
pub fn capture_closure_scope(&self, index: ClosureDefIndex)
pub fn push_scope(&mut self)
pub fn pop_scope(&mut self)
pub fn clear_referenced_syms(&self)
pub fn all_referenced_syms(&self) -> Vec<Sym>
pub fn insert_sym( &mut self, span: TokenSpan, ident: Ident, ty: Ty, sym_kind: ScopeSymKind, ) -> ScopeSymShadow
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Scopes
impl !RefUnwindSafe for Scopes
impl !Send for Scopes
impl !Sync for Scopes
impl Unpin for Scopes
impl UnwindSafe for Scopes
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