fn consume(bytes: &'a [u8], len: usize) -> Result<&'a [u8], DecoderError> {
        if bytes.len() >= len {
            Ok(&bytes[len..])
        } else {
            Err(DecoderError::RlpIsTooShort {
                expected: len,
                got: bytes.len(),
            })
        }
    }
/// consumes slice prefix of length `len`
consumes slice prefix of length `len`
consumes slice prefix of length ` len `
fn consume(bytes: &'a [u8], len: usize) -> Result<&'a [u8], DecoderError> {
        if bytes.len() >= len {
            Ok(&bytes[len..])
        } else {
            Err(DecoderError::RlpIsTooShort {
                expected: len,
                got: bytes.len(),
            })
        }
    }
fn consume ( bytes : & ' a [ u8 ] , len : usize ) -> Result < & ' a [ u8 ] , DecoderError > { if bytes . len ( ) >= len { Ok ( & bytes [ len .. ] ) } else { Err ( DecoderError :: RlpIsTooShort { expected : len , got : bytes . len ( ) , } ) } }
consumes slice prefix of length `len`
consumes slice prefix of length ` len `
bytes
&'a [u8]
len
usize
bytes
&'a [u8]
len
usize