pub struct ScopeBlock {
pub id: usize,
pub max_variables: usize,
pub offset: usize,
pub variables: Vec<Rc<RefCell<VariableInfo>>>,
pub is_loop: bool,
pub labels: Vec<String>,
}
Fields§
§id: usize
unique id for scope
max_variables: usize
To calculate stack size.
offset: usize
stack offset of this scope
variables: Vec<Rc<RefCell<VariableInfo>>>
variables in this scope, in order of declaration.
is_loop: bool
§labels: Vec<String>
Trait Implementations§
Source§impl Clone for ScopeBlock
impl Clone for ScopeBlock
Source§fn clone(&self) -> ScopeBlock
fn clone(&self) -> ScopeBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ScopeBlock
impl !RefUnwindSafe for ScopeBlock
impl !Send for ScopeBlock
impl !Sync for ScopeBlock
impl Unpin for ScopeBlock
impl !UnwindSafe for ScopeBlock
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