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 more