pub enum SequenceComponent {
Member(SequenceOrSetMember),
ComponentsOf(String),
}
Expand description
Intermediate parsing type to parse COMPONENTS OF notation.
SequenceComponent
is an intermediary type that implementors of
a [Backend] will usually not interact with.
When parsing the body of an ASN.1 SEQUENCE or SET, the lexer
distinguishes between a group of members (SequenceComponent::ComponentsOf
) that is imnported from
another ASN.1 data element using the COMPONENTS OF
notation
(i.e. Extending-Sequence ::= SEQUENCE { COMPONENTS OF Another-Sequence, added-field BOOLEAN }
)
and the regular member declaration (SequenceComponent::Member
)
(i.e. Simple-Sequence ::= SEQUENCE { field BOOLEAN }
).
When the lexer assembles the complete SequenceOrSet struct,
it groups the parsed SequenceComponent
items into the members
and components_of
fields of the SequenceOrSet struct. The linker
will subsequently try to resolve the components_of
identifiers.
Variants§
Member(SequenceOrSetMember)
ComponentsOf(String)
Trait Implementations§
source§impl Clone for SequenceComponent
impl Clone for SequenceComponent
source§fn clone(&self) -> SequenceComponent
fn clone(&self) -> SequenceComponent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SequenceComponent
impl Debug for SequenceComponent
source§impl PartialEq for SequenceComponent
impl PartialEq for SequenceComponent
source§fn eq(&self, other: &SequenceComponent) -> bool
fn eq(&self, other: &SequenceComponent) -> bool
self
and other
values to be equal, and is used
by ==
.