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
)