fn modify_dict<F>(&mut self, f: F) -> Result<()>
        where F: FnOnce(&mut Vec<(Value, Value)>)
    {
        let pos = self.pos;
        let top = self.top()?;
        if let Value::Dict(ref mut dict) = *top {
            f(dict);
            Ok(())
        } else {
            Self::stack_error("dict", top, pos)
        }
    }
// Modify the stack-top dict.
Modify the stack-top dict.
Modify the stack - top dict .
fn modify_dict<F>(&mut self, f: F) -> Result<()>
        where F: FnOnce(&mut Vec<(Value, Value)>)
    {
        let pos = self.pos;
        let top = self.top()?;
        if let Value::Dict(ref mut dict) = *top {
            f(dict);
            Ok(())
        } else {
            Self::stack_error("dict", top, pos)
        }
    }
fn modify_dict < F > ( & mut self , f : F ) -> Result < ( ) > where F : FnOnce ( & mut Vec < ( Value , Value ) > ) { let pos = self . pos ; let top = self . top ( ) ? ; if let Value :: Dict ( ref mut dict ) = * top { f ( dict ) ; Ok ( ( ) ) } else { Self :: stack_error ( " " , top , pos ) } }
Modify the stack-top dict.
Modify the stack - top dict .
&mut self
f
F
&mut self
f
F