pub struct Tlv<'a> {
pub tag: u32,
pub value: &'a [u8],
}Expand description
A parsed tag-length-value triple (tag may be multi-byte, e.g. '9F70').
value borrows into the slice passed to parse.
Fields§
§tag: u32§value: &'a [u8]Trait Implementations§
impl<'a> Copy for Tlv<'a>
impl<'a> Eq for Tlv<'a>
impl<'a> StructuralPartialEq for Tlv<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tlv<'a>
impl<'a> RefUnwindSafe for Tlv<'a>
impl<'a> Send for Tlv<'a>
impl<'a> Sync for Tlv<'a>
impl<'a> Unpin for Tlv<'a>
impl<'a> UnsafeUnpin for Tlv<'a>
impl<'a> UnwindSafe for Tlv<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more