pub struct StructureTag {
pub class: TagClass,
pub id: u64,
pub payload: PL,
}
Expand description
ASN.1 structure prepared for serialization.
Fields§
§class: TagClass
§id: u64
§payload: PL
Implementations§
Source§impl StructureTag
impl StructureTag
pub fn match_class(self, class: TagClass) -> Option<Self>
pub fn match_id(self, id: u64) -> Option<Self>
pub fn expect_constructed(self) -> Option<Vec<StructureTag>>
pub fn expect_primitive(self) -> Option<Vec<u8>>
Trait Implementations§
Source§impl Clone for StructureTag
impl Clone for StructureTag
Source§fn clone(&self) -> StructureTag
fn clone(&self) -> StructureTag
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StructureTag
impl Debug for StructureTag
Source§impl PartialEq for StructureTag
impl PartialEq for StructureTag
impl Eq for StructureTag
impl StructuralPartialEq for StructureTag
Auto Trait Implementations§
impl Freeze for StructureTag
impl RefUnwindSafe for StructureTag
impl Send for StructureTag
impl Sync for StructureTag
impl Unpin for StructureTag
impl UnwindSafe for StructureTag
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