pub struct Symbols {
pub data: Rc<RefCell<SymbolsInt>>,
pub captures: Rc<RefCell<Vec<(Interned, usize, usize)>>>,
/* private fields */
}
Fields§
§data: Rc<RefCell<SymbolsInt>>
§captures: Rc<RefCell<Vec<(Interned, usize, usize)>>>
Implementations§
Source§impl Symbols
impl Symbols
pub fn with_outer(outer: Option<Rc<RefCell<Symbols>>>) -> Symbols
pub fn with_let(source: Rc<RefCell<Symbols>>) -> Symbols
pub fn is_empty(&self) -> bool
pub fn regs_count(&self) -> usize
pub fn contains_symbol(&self, key: Interned) -> bool
pub fn can_capture(&self, key: Interned) -> bool
pub fn get_capture_binding(&self, key: Interned) -> Option<usize>
pub fn get(&self, key: Interned) -> Option<usize>
pub fn clear(&mut self)
pub fn reserve_reg(&mut self) -> usize
pub fn insert(&mut self, key: Interned) -> usize
pub fn insert_reserved(&mut self, key: Interned, register: usize)
pub fn insert_capture(&self, _vm: &mut SloshVm, key: Interned) -> Option<usize>
pub fn len_captures(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbols
impl !RefUnwindSafe for Symbols
impl !Send for Symbols
impl !Sync for Symbols
impl Unpin for Symbols
impl !UnwindSafe for Symbols
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