pub fn done(mut self) -> Result<()> {
        while !self.is_done() {
            self.get_value::<crate::Reserved>()?;
        }
        let ind = self.de.input.position() as usize;
        let rest = &self.de.input.get_ref()[ind..];
        if !rest.is_empty() {
            return Err(anyhow!(self.de.dump_state()))
                .context("Trailing value after finishing deserialization")?;
        }
        Ok(())
    }
/// Return error if there are unprocessed bytes in the input.
Return error if there are unprocessed bytes in the input.
Return error if there are unprocessed bytes in the input .
pub fn done(mut self) -> Result<()> {
        while !self.is_done() {
            self.get_value::<crate::Reserved>()?;
        }
        let ind = self.de.input.position() as usize;
        let rest = &self.de.input.get_ref()[ind..];
        if !rest.is_empty() {
            return Err(anyhow!(self.de.dump_state()))
                .context("Trailing value after finishing deserialization")?;
        }
        Ok(())
    }
pub fn done ( mut self ) -> Result < ( ) > { while ! self . is_done ( ) { self . get_value :: < crate :: Reserved > ( ) ? ; } let ind = self . de . input . position ( ) as usize ; let rest = & self . de . input . get_ref ( ) [ ind .. ] ; if ! rest . is_empty ( ) { return Err ( anyhow ! ( self de dump_state ( ) ) ) . context ( " " ) ? ; } Ok ( ( ) ) }
Return error if there are unprocessed bytes in the input.
Return error if there are unprocessed bytes in the input .
mut self
mut self