pub struct RecordPattern {
pub name: Identifier,
pub fields: Vec<(Identifier, Pattern)>,
pub span: Range<usize>,
}Expand description
A record pattern.
Fields§
§name: IdentifierName of the record.
fields: Vec<(Identifier, Pattern)>Fields of the record pattern.
span: Range<usize>Source span of the record pattern.
Trait 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<'de> Deserialize<'de> for RecordPattern
impl<'de> Deserialize<'de> for RecordPattern
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 ==.Source§impl Serialize for RecordPattern
impl Serialize 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