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
impl StructuralPartialEq for DeclarationElsewhere
Auto Trait Implementations§
impl Freeze for DeclarationElsewhere
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
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
)