pub struct ScopeBlock {
pub id: usize,
pub max_variables: usize,
pub offset: usize,
pub variables: Vec<Rc<RefCell<VariableInfo>>>,
pub is_loop: bool,
}
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
Trait Implementations§
source§impl Clone for ScopeBlock
impl Clone for ScopeBlock
source§fn clone(&self) -> ScopeBlock
fn clone(&self) -> ScopeBlock
Returns a copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)