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: &[(bool, SyntaxToken)],
current_index: usize,
) -> bool
pub fn matches( &self, next_token: &SyntaxToken, syntax: &[(bool, SyntaxToken)], current_index: usize, ) -> 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
impl StructuralPartialEq for SyntaxApplication
Auto Trait Implementations§
impl Freeze for SyntaxApplication
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
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
)