pub struct DestructState {
all_optionals: Vec<Vec<(usize, Value)>>,
destructures: Vec<Destructure>,
}
Fields§
§all_optionals: Vec<Vec<(usize, Value)>>
§destructures: Vec<Destructure>
Implementations§
Source§impl DestructState
impl DestructState
pub fn new() -> Self
fn setup_destructures( &self, env: &mut SloshVm, state: &mut CompileState, free_reg: &mut usize, ) -> VMResult<()>
fn setup_optionals( &self, env: &mut SloshVm, state: &mut CompileState, free_reg: usize, ) -> VMResult<()>
fn do_vector_destructure( &mut self, env: &mut SloshVm, vector_handle: Handle, reg: usize, stack: &mut Vec<DestructType>, next_reg: &mut usize, ) -> VMResult<()>
fn do_map_destructure( &mut self, env: &mut SloshVm, map_handle: Handle, current_reg: usize, stack: &mut Vec<DestructType>, next_reg: &mut usize, ) -> VMResult<()>
pub fn do_destructure( &mut self, env: &mut SloshVm, state: &mut CompileState, destruct_type: DestructType, ) -> VMResult<()>
pub fn compile( &mut self, env: &mut SloshVm, state: &mut CompileState, free_reg: &mut usize, ) -> VMResult<()>
Auto Trait Implementations§
impl Freeze for DestructState
impl RefUnwindSafe for DestructState
impl Send for DestructState
impl Sync for DestructState
impl Unpin for DestructState
impl UnwindSafe for DestructState
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