pub fn pop_value_utf8_string(map: &mut HashMap<Vec<u8>, Value>, key: String) -> Result<String, HelperDecodeError> {
    let encoded_value = try!(pop_value_bytestring(map, key));
    match String::from_utf8(encoded_value) {
        Ok(decoded_value) => Ok(decoded_value),
        Err(e) => Err(HelperDecodeError::FromUtf8Error(e)),
    }
}
/// Pops a BValue::String from a HashMap and decode it into a Rust String.
Pops a BValue::String from a HashMap and decode it into a Rust String.
Pops a BValue :: String from a HashMap and decode it into a Rust String .
pub fn pop_value_utf8_string(map: &mut HashMap<Vec<u8>, Value>, key: String) -> Result<String, HelperDecodeError> {
    let encoded_value = try!(pop_value_bytestring(map, key));
    match String::from_utf8(encoded_value) {
        Ok(decoded_value) => Ok(decoded_value),
        Err(e) => Err(HelperDecodeError::FromUtf8Error(e)),
    }
}
pub fn pop_value_utf8_string ( map : & mut HashMap < Vec < u8 > , Value > , key : String ) -> Result < String , HelperDecodeError > { let encoded_value = try ! ( pop_value_bytestring ( map key ) ) ; match String :: from_utf8 ( encoded_value ) { Ok ( decoded_value ) => Ok ( decoded_value ) , Err ( e ) => Err ( HelperDecodeError :: FromUtf8Error ( e ) ) , } }
Pops a BValue::String from a HashMap and decode it into a Rust String.
Pops a BValue :: String from a HashMap and decode it into a Rust String .
map
&mut HashMap<Vec<u8>, Value>
key
String
map
&mut HashMap<Vec<u8>, Value>
key
String