pub enum SyntaxApplication {
ObjectSetDeclaration(ObjectSet),
ValueReference(ASN1Value),
TypeReference(ASN1Type),
Comma,
Literal(String),
LiteralOrTypeReference(DeclarationElsewhere),
}
Variants§
ObjectSetDeclaration(ObjectSet)
ValueReference(ASN1Value)
TypeReference(ASN1Type)
Comma
Literal(String)
LiteralOrTypeReference(DeclarationElsewhere)
Implementations§
source§impl SyntaxApplication
impl SyntaxApplication
sourcepub fn matches(
&self,
next_token: &SyntaxToken,
syntax: &Vec<(bool, SyntaxToken)>
) -> bool
pub fn matches( &self, next_token: &SyntaxToken, syntax: &Vec<(bool, SyntaxToken)> ) -> bool
Checks if a token of a syntactic expression matches a given syntax token, considering the entire syntax (in form of a flattened SyntaxExpression Vec), in order to reliably match Literals
source§impl SyntaxApplication
impl SyntaxApplication
pub fn link_object_set_reference( &mut self, tlds: &BTreeMap<String, ToplevelDefinition> ) -> bool
pub fn references_object_set_by_name(&self) -> bool
Trait Implementations§
source§impl Clone for SyntaxApplication
impl Clone for SyntaxApplication
source§fn clone(&self) -> SyntaxApplication
fn clone(&self) -> SyntaxApplication
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 SyntaxApplication
impl Debug for SyntaxApplication
source§impl PartialEq for SyntaxApplication
impl PartialEq for SyntaxApplication
source§fn eq(&self, other: &SyntaxApplication) -> bool
fn eq(&self, other: &SyntaxApplication) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SyntaxApplication
Auto Trait Implementations§
impl RefUnwindSafe for SyntaxApplication
impl Send for SyntaxApplication
impl Sync for SyntaxApplication
impl Unpin for SyntaxApplication
impl UnwindSafe for SyntaxApplication
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