Struct valkyrie_ast::ForBarePattern
source · pub struct ForBarePattern {
pub pattern: Vec<ArgumentKey>,
pub span: Range<u32>,
}
Expand description
for ref a, mut b in {...}
Fields§
§pattern: Vec<ArgumentKey>
The bare tuple pattern
span: Range<u32>
The range of the node
Implementations§
source§impl ForBarePattern
impl ForBarePattern
sourcepub fn as_pattern_expression(self) -> PatternNode
pub fn as_pattern_expression(self) -> PatternNode
Convert this bare pattern into tuple pattern
Trait Implementations§
source§impl Clone for ForBarePattern
impl Clone for ForBarePattern
source§fn clone(&self) -> ForBarePattern
fn clone(&self) -> ForBarePattern
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 ForBarePattern
impl Debug for ForBarePattern
source§impl Hash for ForBarePattern
impl Hash for ForBarePattern
source§impl PartialEq for ForBarePattern
impl PartialEq for ForBarePattern
source§fn eq(&self, other: &ForBarePattern) -> bool
fn eq(&self, other: &ForBarePattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ForBarePattern
impl StructuralPartialEq for ForBarePattern
Auto Trait Implementations§
impl RefUnwindSafe for ForBarePattern
impl Send for ForBarePattern
impl Sync for ForBarePattern
impl Unpin for ForBarePattern
impl UnwindSafe for ForBarePattern
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