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