pub struct ToplevelTypeDefinition {
pub comments: String,
pub tag: Option<AsnTag>,
pub name: String,
pub ty: ASN1Type,
pub parameterization: Option<Parameterization>,
pub index: Option<(Rc<ModuleReference>, usize)>,
}
Fields§
§comments: String
§tag: Option<AsnTag>
§name: String
§ty: ASN1Type
§parameterization: Option<Parameterization>
§index: Option<(Rc<ModuleReference>, usize)>
Implementations§
source§impl ToplevelTypeDefinition
impl ToplevelTypeDefinition
sourcepub fn collect_supertypes(
&mut self,
tlds: &BTreeMap<String, ToplevelDefinition>
) -> Result<(), GrammarError>
pub fn collect_supertypes( &mut self, tlds: &BTreeMap<String, ToplevelDefinition> ) -> Result<(), GrammarError>
Collects supertypes of ASN1 values.
In ToplevelTypeDefinition
s, values will appear only as DEFAULT
values in SET
s or SEQUENCE
s.
Trait Implementations§
source§impl Clone for ToplevelTypeDefinition
impl Clone for ToplevelTypeDefinition
source§fn clone(&self) -> ToplevelTypeDefinition
fn clone(&self) -> ToplevelTypeDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ToplevelTypeDefinition
impl Debug for ToplevelTypeDefinition
source§impl From<(Vec<&str>, &str, Option<Parameterization>, (Option<AsnTag>, ASN1Type))> for ToplevelTypeDefinition
impl From<(Vec<&str>, &str, Option<Parameterization>, (Option<AsnTag>, ASN1Type))> for ToplevelTypeDefinition
source§impl PartialEq for ToplevelTypeDefinition
impl PartialEq for ToplevelTypeDefinition
source§fn eq(&self, other: &ToplevelTypeDefinition) -> bool
fn eq(&self, other: &ToplevelTypeDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ToplevelTypeDefinition
Auto Trait Implementations§
impl RefUnwindSafe for ToplevelTypeDefinition
impl !Send for ToplevelTypeDefinition
impl !Sync for ToplevelTypeDefinition
impl Unpin for ToplevelTypeDefinition
impl UnwindSafe for ToplevelTypeDefinition
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