pub fn end(&mut self) -> Result<()> {
        let mut buf = [0];
        match self.rdr.read(&mut buf) {
            Err(err) => Err(Error::Io(err)),
            Ok(1) => self.error(ErrorCode::TrailingBytes),
            _ => Ok(())
        }
    }
/// Assert that we reached the end of the stream.
Assert that we reached the end of the stream.
Assert that we reached the end of the stream .
pub fn end(&mut self) -> Result<()> {
        let mut buf = [0];
        match self.rdr.read(&mut buf) {
            Err(err) => Err(Error::Io(err)),
            Ok(1) => self.error(ErrorCode::TrailingBytes),
            _ => Ok(())
        }
    }
pub fn end ( & mut self ) -> Result < ( ) > { let mut buf = [ 0 ] ; match self . rdr . read ( & mut buf ) { Err ( err ) => Err ( Error :: Io ( err ) ) , Ok ( 1 ) => self . error ( ErrorCode :: TrailingBytes ) , _ => Ok ( ( ) ) } }
Assert that we reached the end of the stream.
Assert that we reached the end of the stream .
&mut self
&mut self