fn decode_element(bytes: &'a[u8]) -> Result<Option<(Self, usize)>, EbmlError> {
        match Self::check_space(bytes)? {
            None => Ok(None),
            Some(info) => {
                match Self::decode(info.element_id, &bytes[info.body_offset..info.element_len]) {
                    Ok(element) => Ok(Some((element, info.element_len))),
                    Err(error) => Err(error)
                }
            }
        }
    }
/// Attempt to construct an instance of this type from the given byte slice
Attempt to construct an instance of this type from the given byte slice
Attempt to construct an instance of this type from the given byte slice
fn decode_element(bytes: &'a[u8]) -> Result<Option<(Self, usize)>, EbmlError> {
        match Self::check_space(bytes)? {
            None => Ok(None),
            Some(info) => {
                match Self::decode(info.element_id, &bytes[info.body_offset..info.element_len]) {
                    Ok(element) => Ok(Some((element, info.element_len))),
                    Err(error) => Err(error)
                }
            }
        }
    }
fn decode_element ( bytes : & ' a [ u8 ] ) -> Result < Option < ( Self , usize ) > , EbmlError > { match Self :: check_space ( bytes ) ? { None => Ok ( None ) , Some ( info ) => { match Self :: decode ( info . element_id , & bytes [ info . body_offset .. info . element_len ] ) { Ok ( element ) => Ok ( Some ( ( element , info . element_len ) ) ) , Err ( error ) => Err ( error ) } } } }
Attempt to construct an instance of this type from the given byte slice
Attempt to construct an instance of this type from the given byte slice
bytes
&'a[u8]
bytes
&'a[u8]