pub fn extra_bytes(&self) -> &[u8] {
        match self {
            Self::Ieee { extension, .. } => {
                extension.as_ref().map(|ext_id| std::slice::from_ref(ext_id)).unwrap_or(&[])
            }
            Self::Vendor { vendor_ie_hdr } => &vendor_ie_hdr[..],
        }
    }
/// Return the bytes consumed from the IE body (not IE header) to construct IeType
Return the bytes consumed from the IE body (not IE header) to construct IeType
Return the bytes consumed from the IE body ( not IE header ) to construct IeType
pub fn extra_bytes(&self) -> &[u8] {
        match self {
            Self::Ieee { extension, .. } => {
                extension.as_ref().map(|ext_id| std::slice::from_ref(ext_id)).unwrap_or(&[])
            }
            Self::Vendor { vendor_ie_hdr } => &vendor_ie_hdr[..],
        }
    }
pub fn extra_bytes ( & self ) -> & [ u8 ] { match self { Self :: Ieee { extension , .. } => { extension . as_ref ( ) . map ( | ext_id | std :: slice :: from_ref ( ext_id ) ) . unwrap_or ( & [ ] ) } Self :: Vendor { vendor_ie_hdr } => & vendor_ie_hdr [ .. ] , } }
Return the bytes consumed from the IE body (not IE header) to construct IeType
Return the bytes consumed from the IE body ( not IE header ) to construct IeType
&self
&self