pub fn parse(data: &'a [u8]) -> Result<InformationElement<'a>, Error> {
        let raw = RawInformationElement::parse(data)?;
        if let Some(id) = raw.ie_id() {
            return Self::from(id, raw.data);
        } else {
            return Ok(InformationElement::Other(raw));
        }
    }
/// Parse byte slice into information element
Parse byte slice into information element
Parse byte slice into information element
pub fn parse(data: &'a [u8]) -> Result<InformationElement<'a>, Error> {
        let raw = RawInformationElement::parse(data)?;
        if let Some(id) = raw.ie_id() {
            return Self::from(id, raw.data);
        } else {
            return Ok(InformationElement::Other(raw));
        }
    }
pub fn parse ( data : & ' a [ u8 ] ) -> Result < InformationElement < ' a > , Error > { let raw = RawInformationElement :: parse ( data ) ? ; if let Some ( id ) = raw . ie_id ( ) { return Self :: from ( id , raw . data ) ; } else { return Ok ( InformationElement :: Other ( raw ) ) ; } }
Parse byte slice into information element
Parse byte slice into information element
data
&'a [u8]
data
&'a [u8]