pub struct FieldPat {
pub name: Spanned<String>,
pub pattern: Option<Spanned<Pattern>>,
}Expand description
A single field in a record pattern.
Fields§
§name: Spanned<String>§pattern: Option<Spanned<Pattern>>None means shorthand { x } which binds to a variable named x.
Trait Implementations§
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