pub fn insert<T>(&mut self, key: String, val: T) -> IResult<()>
    where
        T: Into<Pod>,
    {
        match *self {
            Pod::Hash(ref mut hash) => {
                hash.insert(key, val.into());
                Ok(())
            }
            _ => Err(Error::type_error("Hash")),
        }
    }
/// Inserts a key value pair into or override the exist one in Pod::Hash.
Inserts a key value pair into or override the exist one in Pod::Hash.
Inserts a key value pair into or override the exist one in Pod :: Hash .
pub fn insert<T>(&mut self, key: String, val: T) -> IResult<()>
    where
        T: Into<Pod>,
    {
        match *self {
            Pod::Hash(ref mut hash) => {
                hash.insert(key, val.into());
                Ok(())
            }
            _ => Err(Error::type_error("Hash")),
        }
    }
pub fn insert < T > ( & mut self , key : String , val : T ) -> IResult < ( ) > where T : Into < Pod > , { match * self { Pod :: Hash ( ref mut hash ) => { hash . insert ( key , val . into ( ) ) ; Ok ( ( ) ) } _ => Err ( Error :: type_error ( " " ) ) , } }
Inserts a key value pair into or override the exist one in Pod::Hash.
Inserts a key value pair into or override the exist one in Pod :: Hash .
&mut self
key
String
val
T
&mut self
key
String
val
T