pub struct PatternField {
pub name: Ident,
pub pattern: Option<Pattern>,
pub span: Span,
}Expand description
A field pattern inside a struct pattern: x or x: pat
Fields§
§name: Ident§pattern: Option<Pattern>§span: SpanTrait 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 moreAuto 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