pub struct TlvItemEnc {
pub tag: u8,
pub value: TlvItemValueEnc,
}
Expand description
Structure used for document style encoding.
let t1 = tlv::TlvItemEnc {
tag: 0,
value: tlv::TlvItemValueEnc::StructAnon(vec![
tlv::TlvItemEnc { tag: 0, value: tlv::TlvItemValueEnc::UInt8(6) },
tlv::TlvItemEnc { tag: 1, value: tlv::TlvItemValueEnc::UInt8(7) }
]),
};
let o = t1.encode().unwrap();
Fields§
§tag: u8
§value: TlvItemValueEnc
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlvItemEnc
impl RefUnwindSafe for TlvItemEnc
impl Send for TlvItemEnc
impl Sync for TlvItemEnc
impl Unpin for TlvItemEnc
impl UnwindSafe for TlvItemEnc
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