pub enum PatternBinding {
Bind {
field: Spanned<FieldName>,
var: Ident,
},
Wildcard {
field: Spanned<FieldName>,
span: Span,
},
}Expand description
A binding in a match pattern.
Variants§
Trait Implementations§
Source§impl Clone for PatternBinding
impl Clone for PatternBinding
Source§fn clone(&self) -> PatternBinding
fn clone(&self) -> PatternBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PatternBinding
impl Debug for PatternBinding
Source§impl FormatEquivalent for PatternBinding
impl FormatEquivalent for PatternBinding
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl Freeze for PatternBinding
impl RefUnwindSafe for PatternBinding
impl Send for PatternBinding
impl Sync for PatternBinding
impl Unpin for PatternBinding
impl UnsafeUnpin for PatternBinding
impl UnwindSafe for PatternBinding
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