pub fn limit(&mut self, to: usize) -> Result<Decoder> {
        let end = *self.cursor + to;
        self.check(end)?;
        Ok(Decoder {
            bytes: self.bytes,
            cursor: self.cursor,
            limit: end,
        })
    }
/// Limits the decoder to `to` after the cursor
Limits the decoder to `to` after the cursor
Limits the decoder to ` to ` after the cursor
pub fn limit(&mut self, to: usize) -> Result<Decoder> {
        let end = *self.cursor + to;
        self.check(end)?;
        Ok(Decoder {
            bytes: self.bytes,
            cursor: self.cursor,
            limit: end,
        })
    }
pub fn limit ( & mut self , to : usize ) -> Result < Decoder > { let end = * self . cursor + to ; self . check ( end ) ? ; Ok ( Decoder { bytes : self . bytes , cursor : self . cursor , limit : end , } ) }
Limits the decoder to `to` after the cursor
Limits the decoder to ` to ` after the cursor
&mut self
to
usize