pub struct ToplevelInformationDefinition {
pub comments: String,
pub name: String,
pub parameterization: Option<Parameterization>,
pub class: Option<ClassLink>,
pub value: ASN1Information,
pub index: Option<(Rc<RefCell<ModuleReference>>, usize)>,
}
Fields§
§comments: String
§name: String
§parameterization: Option<Parameterization>
§class: Option<ClassLink>
§value: ASN1Information
§index: Option<(Rc<RefCell<ModuleReference>>, usize)>
Implementations§
source§impl ToplevelInformationDefinition
impl ToplevelInformationDefinition
pub fn pdu(&self) -> &ASN1Information
source§impl ToplevelInformationDefinition
impl ToplevelInformationDefinition
pub fn resolve_class_reference( self, tlds: &BTreeMap<String, ToplevelDefinition>, ) -> Self
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 ToplevelInformationDefinition
impl Clone for ToplevelInformationDefinition
source§fn clone(&self) -> ToplevelInformationDefinition
fn clone(&self) -> ToplevelInformationDefinition
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 From<(&str, ASN1Information, &str)> for ToplevelInformationDefinition
impl From<(&str, ASN1Information, &str)> for ToplevelInformationDefinition
source§impl From<(Vec<&str>, &str, Option<Parameterization>, &str, InformationObjectFields)> for ToplevelInformationDefinition
impl From<(Vec<&str>, &str, Option<Parameterization>, &str, InformationObjectFields)> for ToplevelInformationDefinition
source§fn from(
value: (Vec<&str>, &str, Option<Parameterization>, &str, InformationObjectFields),
) -> Self
fn from( value: (Vec<&str>, &str, Option<Parameterization>, &str, InformationObjectFields), ) -> Self
Converts to this type from the input type.
source§impl From<(Vec<&str>, &str, Option<Parameterization>, &str, ObjectSet)> for ToplevelInformationDefinition
impl From<(Vec<&str>, &str, Option<Parameterization>, &str, ObjectSet)> for ToplevelInformationDefinition
source§impl From<(Vec<&str>, &str, Option<Parameterization>, InformationObjectClass)> for ToplevelInformationDefinition
impl From<(Vec<&str>, &str, Option<Parameterization>, InformationObjectClass)> for ToplevelInformationDefinition
source§fn from(
value: (Vec<&str>, &str, Option<Parameterization>, InformationObjectClass),
) -> Self
fn from( value: (Vec<&str>, &str, Option<Parameterization>, InformationObjectClass), ) -> Self
Converts to this type from the input type.
source§impl PartialEq for ToplevelInformationDefinition
impl PartialEq for ToplevelInformationDefinition
source§fn eq(&self, other: &ToplevelInformationDefinition) -> bool
fn eq(&self, other: &ToplevelInformationDefinition) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ToplevelInformationDefinition
Auto Trait Implementations§
impl Freeze for ToplevelInformationDefinition
impl !RefUnwindSafe for ToplevelInformationDefinition
impl !Send for ToplevelInformationDefinition
impl !Sync for ToplevelInformationDefinition
impl Unpin for ToplevelInformationDefinition
impl !UnwindSafe for ToplevelInformationDefinition
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)