pub(crate) fn swap_stack_bottom(&mut self, count: usize) -> Result<usize, StackError> {
        match self.stack.len().checked_sub(count) {
            Some(new_top) => Ok(mem::replace(&mut self.stack_bottom, new_top)),
            None => Err(StackError(())),
        }
    }
/// Modify stack top by subtracting the given count from it while checking
/// that it is in bounds of the stack.
///
/// This is used internally when returning from a call frame.
///
/// Returns the old stack top.
Modify stack top by subtracting the given count from it while checking
that it is in bounds of the stack.

This is used internally when returning from a call frame.

Returns the old stack top.
Modify stack top by subtracting the given count from it while checking that it is in bounds of the stack . This is used internally when returning from a call frame . Returns the old stack top .
pub(crate) fn swap_stack_bottom(&mut self, count: usize) -> Result<usize, StackError> {
        match self.stack.len().checked_sub(count) {
            Some(new_top) => Ok(mem::replace(&mut self.stack_bottom, new_top)),
            None => Err(StackError(())),
        }
    }
pub ( crate ) fn swap_stack_bottom ( & mut self , count : usize ) -> Result < usize , StackError > { match self . stack . len ( ) . checked_sub ( count ) { Some ( new_top ) => Ok ( mem :: replace ( & mut self . stack_bottom , new_top ) ) , None => Err ( StackError ( ( ) ) ) , } }
Modify stack top by subtracting the given count from it while checking
that it is in bounds of the stack.
Modify stack top by subtracting the given count from it while checking that it is in bounds of the stack .
&mut self
count
usize
&mut self
count
usize