pub struct RecordPattern {
pub record_type: Type,
pub components: Vec<Pattern>,
pub span: Span,
}Expand description
A record pattern: Type(comp1, comp2, ...).
Fields§
§record_type: Type§components: Vec<Pattern>§span: SpanTrait Implementations§
Source§impl Clone for RecordPattern
impl Clone for RecordPattern
Source§fn clone(&self) -> RecordPattern
fn clone(&self) -> RecordPattern
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 RecordPattern
impl Debug for RecordPattern
Source§impl Hash for RecordPattern
impl Hash for RecordPattern
Source§impl PartialEq for RecordPattern
impl PartialEq for RecordPattern
Source§fn eq(&self, other: &RecordPattern) -> bool
fn eq(&self, other: &RecordPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RecordPattern
impl StructuralPartialEq for RecordPattern
Auto Trait Implementations§
impl Freeze for RecordPattern
impl RefUnwindSafe for RecordPattern
impl Send for RecordPattern
impl Sync for RecordPattern
impl Unpin for RecordPattern
impl UnsafeUnpin for RecordPattern
impl UnwindSafe for RecordPattern
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