pub struct InformationObjectSyntax {
pub expressions: Vec<SyntaxExpression>,
}
Fields§
§expressions: Vec<SyntaxExpression>
Implementations§
source§impl InformationObjectSyntax
impl InformationObjectSyntax
sourcepub fn flatten(&self) -> Vec<(bool, SyntaxToken)>
pub fn flatten(&self) -> Vec<(bool, SyntaxToken)>
Information object syntax consists of mandatory and optional expressions.
Optional expressions may be nested without limit.
Declarations do not have this nested structure, but are always a sequence of
tokens, so in order to check whether an expression follows a given syntax we need to
flatten the nested structure into a sequence of tokens with a required
marker.
Trait Implementations§
source§impl Clone for InformationObjectSyntax
impl Clone for InformationObjectSyntax
source§fn clone(&self) -> InformationObjectSyntax
fn clone(&self) -> InformationObjectSyntax
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 InformationObjectSyntax
impl Debug for InformationObjectSyntax
source§impl PartialEq for InformationObjectSyntax
impl PartialEq for InformationObjectSyntax
source§fn eq(&self, other: &InformationObjectSyntax) -> bool
fn eq(&self, other: &InformationObjectSyntax) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InformationObjectSyntax
Auto Trait Implementations§
impl RefUnwindSafe for InformationObjectSyntax
impl Send for InformationObjectSyntax
impl Sync for InformationObjectSyntax
impl Unpin for InformationObjectSyntax
impl UnwindSafe for InformationObjectSyntax
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