Struct lber::structure::StructureTag
[−]
[src]
pub struct StructureTag { pub class: TagClass, pub id: u64, pub payload: PL, }
ASN.1 structure prepared for serialization.
Fields
class: TagClass
id: u64
payload: PL
Methods
impl StructureTag
[src]
pub fn match_class(self, class: TagClass) -> Option<Self>
[src]
pub fn match_id(self, id: u64) -> Option<Self>
[src]
pub fn expect_constructed(self) -> Option<Vec<StructureTag>>
[src]
pub fn expect_primitive(self) -> Option<Vec<u8>>
[src]
Trait Implementations
impl<'a> Consumer<&'a [u8], StructureTag, (), Move> for Parser
[src]
fn handle(
&mut self,
input: Input<&[u8]>
) -> &ConsumerState<StructureTag, (), Move>
[src]
&mut self,
input: Input<&[u8]>
) -> &ConsumerState<StructureTag, (), Move>
implement handle for the current computation, returning the new state of the consumer
fn state(&self) -> &ConsumerState<StructureTag, (), Move>
[src]
returns the current state
impl Clone for StructureTag
[src]
fn clone(&self) -> StructureTag
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for StructureTag
[src]
fn eq(&self, __arg_0: &StructureTag) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StructureTag) -> bool
[src]
This method tests for !=
.
impl Debug for StructureTag
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more