fn parse_ascii<T: FromStr>(&self, bytes: Vec<u8>) -> Result<T> {
        match str::from_utf8(&bytes).unwrap_or("").parse() {
            Ok(v) => Ok(v),
            Err(_) => self.error(ErrorCode::InvalidLiteral(bytes)),
        }
    }
// Parse an expected ASCII literal from the stream or raise an error.
Parse an expected ASCII literal from the stream or raise an error.
Parse an expected ASCII literal from the stream or raise an error .
fn parse_ascii<T: FromStr>(&self, bytes: Vec<u8>) -> Result<T> {
        match str::from_utf8(&bytes).unwrap_or("").parse() {
            Ok(v) => Ok(v),
            Err(_) => self.error(ErrorCode::InvalidLiteral(bytes)),
        }
    }
fn parse_ascii < T : FromStr > ( & self , bytes : Vec < u8 > ) -> Result < T > { match str :: from_utf8 ( & bytes ) . unwrap_or ( " " ) . parse ( ) { Ok ( v ) => Ok ( v ) , Err ( _ ) => self . error ( ErrorCode :: InvalidLiteral ( bytes ) ) , } }
Parse an expected ASCII literal from the stream or raise an error.
Parse an expected ASCII literal from the stream or raise an error .
&self
bytes
Vec<u8>
&self
bytes
Vec<u8>