Enum valkyrie_parser::StatementNode
source · pub enum StatementNode {
Show 14 variants
ControlFlow(ControlFlowNode),
DefineClass(DefineClassNode),
DefineEnumerate(DefineEnumerateNode),
DefineExtends(DefineExtendsNode),
DefineFunction(DefineFunctionNode),
DefineImport(DefineImportNode),
DefineNamespace(DefineNamespaceNode),
DefineTrait(DefineTraitNode),
DefineUnion(DefineUnionNode),
DefineVariable(DefineVariableNode),
Eos(EosNode),
ExpressionRoot(ExpressionRootNode),
ForStatement(ForStatementNode),
WhileStatement(WhileStatementNode),
}
Variants§
ControlFlow(ControlFlowNode)
DefineClass(DefineClassNode)
DefineEnumerate(DefineEnumerateNode)
DefineExtends(DefineExtendsNode)
DefineFunction(DefineFunctionNode)
DefineImport(DefineImportNode)
DefineNamespace(DefineNamespaceNode)
DefineTrait(DefineTraitNode)
DefineUnion(DefineUnionNode)
DefineVariable(DefineVariableNode)
Eos(EosNode)
ExpressionRoot(ExpressionRootNode)
ForStatement(ForStatementNode)
WhileStatement(WhileStatementNode)
Trait Implementations§
source§impl Clone for StatementNode
impl Clone for StatementNode
source§fn clone(&self) -> StatementNode
fn clone(&self) -> StatementNode
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 StatementNode
impl Debug for StatementNode
source§impl FromStr for StatementNode
impl FromStr for StatementNode
§type Err = YggdrasilError<ValkyrieRule>
type Err = YggdrasilError<ValkyrieRule>
The associated error which can be returned from parsing.
source§fn from_str(input: &str) -> Result<Self, YggdrasilError<ValkyrieRule>>
fn from_str(input: &str) -> Result<Self, YggdrasilError<ValkyrieRule>>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for StatementNode
impl Hash for StatementNode
source§impl YggdrasilNode for StatementNode
impl YggdrasilNode for StatementNode
Auto Trait Implementations§
impl RefUnwindSafe for StatementNode
impl Send for StatementNode
impl Sync for StatementNode
impl Unpin for StatementNode
impl UnwindSafe for StatementNode
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