Enum valkyrie_ast::WhileConditionNode
source · pub enum WhileConditionNode {
Unconditional,
Expression(ExpressionNode),
Case(PatternNode),
}Expand description
while true
Variants§
Unconditional
while { }
Expression(ExpressionNode)
while true {}
Case(PatternNode)
while let Some(_) = ... {}
Implementations§
Trait Implementations§
source§impl Clone for WhileConditionNode
impl Clone for WhileConditionNode
source§fn clone(&self) -> WhileConditionNode
fn clone(&self) -> WhileConditionNode
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 WhileConditionNode
impl Debug for WhileConditionNode
source§impl Hash for WhileConditionNode
impl Hash for WhileConditionNode
source§impl PartialEq for WhileConditionNode
impl PartialEq for WhileConditionNode
source§fn eq(&self, other: &WhileConditionNode) -> bool
fn eq(&self, other: &WhileConditionNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for WhileConditionNode
impl StructuralPartialEq for WhileConditionNode
Auto Trait Implementations§
impl RefUnwindSafe for WhileConditionNode
impl Send for WhileConditionNode
impl Sync for WhileConditionNode
impl Unpin for WhileConditionNode
impl UnwindSafe for WhileConditionNode
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