pub struct PatternField {
pub label: Name,
pub label_span: NodeSpan,
pub pattern: Pattern,
}Expand description
One entry of a record pattern: the label it names, where the label alone was written, and the pattern that field’s value is matched against.
Fields§
§label: Name§label_span: NodeSpanWhere the label alone was written; the pattern carries its own span. For the
{ label } shorthand the two are the same text.
pattern: PatternTrait Implementations§
Source§impl Clone for PatternField
impl Clone for PatternField
Source§fn clone(&self) -> PatternField
fn clone(&self) -> PatternField
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 PatternField
impl Debug for PatternField
Source§impl PartialEq for PatternField
impl PartialEq for PatternField
impl StructuralPartialEq for PatternField
Auto Trait Implementations§
impl Freeze for PatternField
impl RefUnwindSafe for PatternField
impl Send for PatternField
impl Sync for PatternField
impl Unpin for PatternField
impl UnsafeUnpin for PatternField
impl UnwindSafe for PatternField
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