Enum iso7816_tlv::ber::Value
source · pub enum Value {
Constructed(Vec<Tlv>),
Primitive(Vec<u8>),
}
Expand description
Value definition of BER-TLV data
Variants§
Constructed(Vec<Tlv>)
constructed data object, i.e., the value is encoded in BER-TLV
Primitive(Vec<u8>)
primitive data object, i.e., the value is not encoded in BER-TLV (may be empty)
Implementations§
source§impl Value
impl Value
sourcepub fn is_constructed(&self) -> bool
pub fn is_constructed(&self) -> bool
Wether the value is constructed or not
sourcepub fn len_as_bytes(&self) -> usize
pub fn len_as_bytes(&self) -> usize
Get value length once serialized into BER-TLV data
Trait Implementations§
source§impl PartialEq for Value
impl PartialEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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