[][src]Struct rustc_ap_rustc_ast::ast::FieldPat

pub struct FieldPat {
    pub ident: Ident,
    pub pat: P<Pat>,
    pub is_shorthand: bool,
    pub attrs: AttrVec,
    pub id: NodeId,
    pub span: Span,
    pub is_placeholder: bool,
}

A single field in a struct pattern

Patterns like the fields of Foo { x, ref y, ref mut z } are treated the same as x: x, y: ref y, z: ref mut z, except is_shorthand is true

Fields

ident: Ident

The identifier for the field

pat: P<Pat>

The pattern the field is destructured to

is_shorthand: boolattrs: AttrVecid: NodeIdspan: Spanis_placeholder: bool

Trait Implementations

impl Clone for FieldPat[src]

impl Debug for FieldPat[src]

impl<__D: Decoder> Decodable<__D> for FieldPat[src]

impl<__E: Encoder> Encodable<__E> for FieldPat[src]

impl HasAttrs for FieldPat[src]

Auto Trait Implementations

impl !RefUnwindSafe for FieldPat

impl !Send for FieldPat

impl !Sync for FieldPat

impl Unpin for FieldPat

impl !UnwindSafe for FieldPat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,