#[non_exhaustive]pub enum FieldAssign {
Assign {
name: Identifier,
value: Expr,
pos: Pos,
span: Span,
},
Pun {
name: Identifier,
pos: Pos,
span: Span,
},
Wildcard {
pos: Pos,
span: Span,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Assign
Explicit record assignment: field = expression.
Fields
§
name: IdentifierField being assigned.
Pun
Record pun: field, meaning field = field.
Fields
§
name: IdentifierPunned field name.
Wildcard
Record wildcard: ...
Implementations§
Trait Implementations§
Source§impl Clone for FieldAssign
impl Clone for FieldAssign
Source§fn clone(&self) -> FieldAssign
fn clone(&self) -> FieldAssign
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 FieldAssign
impl Debug for FieldAssign
impl Eq for FieldAssign
Source§impl PartialEq for FieldAssign
impl PartialEq for FieldAssign
Source§fn eq(&self, other: &FieldAssign) -> bool
fn eq(&self, other: &FieldAssign) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldAssign
Auto Trait Implementations§
impl Freeze for FieldAssign
impl RefUnwindSafe for FieldAssign
impl Send for FieldAssign
impl Sync for FieldAssign
impl Unpin for FieldAssign
impl UnsafeUnpin for FieldAssign
impl UnwindSafe for FieldAssign
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