Struct valkyrie_ast::PatternWhenNode
source · pub struct PatternWhenNode {
pub guard: ExpressionKind,
pub span: Range<u32>,
}
Expand description
when a > 0:
when a > 0:
case _ if a > 0:
Fields§
§guard: ExpressionKind
The condition of the when
span: Range<u32>
The range of the node
Trait Implementations§
source§impl Clone for PatternWhenNode
impl Clone for PatternWhenNode
source§fn clone(&self) -> PatternWhenNode
fn clone(&self) -> PatternWhenNode
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 PatternWhenNode
impl Debug for PatternWhenNode
source§impl From<PatternWhenNode> for PatternCondition
impl From<PatternWhenNode> for PatternCondition
source§fn from(o: PatternWhenNode) -> Self
fn from(o: PatternWhenNode) -> Self
Converts to this type from the input type.
source§impl Hash for PatternWhenNode
impl Hash for PatternWhenNode
source§impl PartialEq for PatternWhenNode
impl PartialEq for PatternWhenNode
source§fn eq(&self, other: &PatternWhenNode) -> bool
fn eq(&self, other: &PatternWhenNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PatternWhenNode
impl StructuralPartialEq for PatternWhenNode
Auto Trait Implementations§
impl RefUnwindSafe for PatternWhenNode
impl Send for PatternWhenNode
impl Sync for PatternWhenNode
impl Unpin for PatternWhenNode
impl UnwindSafe for PatternWhenNode
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