pub struct FieldPat {
pub id: NodeId,
pub name: Ident,
pub pat: Option<Pat>,
}Expand description
A field in a struct pattern.
Fields§
§id: NodeIdNode id, for the binding of a shorthand field.
name: IdentThe field name.
pat: Option<Pat>The sub-pattern; None for the shorthand { x }.
Trait Implementations§
impl StructuralPartialEq for FieldPat
Auto Trait Implementations§
impl Freeze for FieldPat
impl RefUnwindSafe for FieldPat
impl Send for FieldPat
impl Sync for FieldPat
impl Unpin for FieldPat
impl UnsafeUnpin for FieldPat
impl UnwindSafe for FieldPat
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