pub struct FunctionScopeState {
pub block_scope_stack: Vec<BlockScope>,
pub return_type: Type,
pub variable_index: usize,
}
Fields§
§block_scope_stack: Vec<BlockScope>
§return_type: Type
§variable_index: usize
Implementations§
Source§impl FunctionScopeState
impl FunctionScopeState
pub fn gen_variable_index(&mut self) -> usize
Trait Implementations§
Source§impl Clone for FunctionScopeState
impl Clone for FunctionScopeState
Source§fn clone(&self) -> FunctionScopeState
fn clone(&self) -> FunctionScopeState
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 FunctionScopeState
impl RefUnwindSafe for FunctionScopeState
impl !Send for FunctionScopeState
impl !Sync for FunctionScopeState
impl Unpin for FunctionScopeState
impl UnwindSafe for FunctionScopeState
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