fn decode_unicode(&self, string: Vec<u8>) -> Result<Value> {
        match String::from_utf8(string) {
            Ok(v)  => Ok(Value::String(v)),
            Err(_) => self.error(ErrorCode::StringNotUTF8)
        }
    }
// Decode a Unicode string from UTF-8.
Decode a Unicode string from UTF-8.
Decode a Unicode string from UTF - 8 .
fn decode_unicode(&self, string: Vec<u8>) -> Result<Value> {
        match String::from_utf8(string) {
            Ok(v)  => Ok(Value::String(v)),
            Err(_) => self.error(ErrorCode::StringNotUTF8)
        }
    }
fn decode_unicode ( & self , string : Vec < u8 > ) -> Result < Value > { match String :: from_utf8 ( string ) { Ok ( v ) => Ok ( Value :: String ( v ) ) , Err ( _ ) => self . error ( ErrorCode :: StringNotUTF8 ) } }
Decode a Unicode string from UTF-8.
Decode a Unicode string from UTF - 8 .
&self
string
Vec<u8>
&self
string
Vec<u8>