Struct rasn_compiler::intermediate::DeclarationElsewhere
source · pub struct DeclarationElsewhere {
pub parent: Option<String>,
pub identifier: String,
pub constraints: Vec<Constraint>,
}
Expand description
Intermediate placeholder for a type declared in some other part of the ASN1 specification that is being parsed or in one of its imports.
Fields§
§parent: Option<String>
Chain of parent declaration leading back to a basic ASN1 type
identifier: String
§constraints: Vec<Constraint>
Implementations§
source§impl DeclarationElsewhere
impl DeclarationElsewhere
pub fn root<'a>( &self, tlds: &'a BTreeMap<String, ToplevelDefinition> ) -> Result<&'a ASN1Type, GrammarError>
Trait Implementations§
source§impl Clone for DeclarationElsewhere
impl Clone for DeclarationElsewhere
source§fn clone(&self) -> DeclarationElsewhere
fn clone(&self) -> DeclarationElsewhere
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 Constrainable for DeclarationElsewhere
impl Constrainable for DeclarationElsewhere
source§fn constraints(&self) -> &Vec<Constraint>
fn constraints(&self) -> &Vec<Constraint>
returns a reference to the type’s constraints
source§fn constraints_mut(&mut self) -> &mut Vec<Constraint>
fn constraints_mut(&mut self) -> &mut Vec<Constraint>
returns a mutable reference to the type’s constraints
source§impl Debug for DeclarationElsewhere
impl Debug for DeclarationElsewhere
source§impl From<(Option<&str>, &str, Option<Vec<Constraint>>)> for DeclarationElsewhere
impl From<(Option<&str>, &str, Option<Vec<Constraint>>)> for DeclarationElsewhere
source§impl PartialEq for DeclarationElsewhere
impl PartialEq for DeclarationElsewhere
source§fn eq(&self, other: &DeclarationElsewhere) -> bool
fn eq(&self, other: &DeclarationElsewhere) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeclarationElsewhere
Auto Trait Implementations§
impl RefUnwindSafe for DeclarationElsewhere
impl Send for DeclarationElsewhere
impl Sync for DeclarationElsewhere
impl Unpin for DeclarationElsewhere
impl UnwindSafe for DeclarationElsewhere
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