pub fn at_offset_from_top(&self, offset: usize) -> Result<&Value, StackError> {
        match self
            .stack
            .len()
            .checked_sub(offset)
            .filter(|n| *n >= self.stack_bottom)
            .and_then(|n| self.stack.get(n))
        {
            Some(value) => Ok(value),
            None => Err(StackError(())),
        }
    }
/// Peek the value at the given offset from the top.
Peek the value at the given offset from the top.
Peek the value at the given offset from the top .
pub fn at_offset_from_top(&self, offset: usize) -> Result<&Value, StackError> {
        match self
            .stack
            .len()
            .checked_sub(offset)
            .filter(|n| *n >= self.stack_bottom)
            .and_then(|n| self.stack.get(n))
        {
            Some(value) => Ok(value),
            None => Err(StackError(())),
        }
    }
pub fn at_offset_from_top ( & self , offset : usize ) -> Result < & Value , StackError > { match self . stack . len ( ) . checked_sub ( offset ) . filter ( | n | * n >= self . stack_bottom ) . and_then ( | n | self . stack . get ( n ) ) { Some ( value ) => Ok ( value ) , None => Err ( StackError ( ( ) ) ) , } }
Peek the value at the given offset from the top.
Peek the value at the given offset from the top .
&self
offset
usize
&self
offset
usize