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
impl StructuralPartialEq for SequenceComponent
Auto Trait Implementations§
impl Freeze for SequenceComponent
impl RefUnwindSafe for SequenceComponent
impl Send for SequenceComponent
impl Sync for SequenceComponent
impl Unpin for SequenceComponent
impl UnwindSafe for SequenceComponent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)