Struct syn::PatStruct [−][src]
pub struct PatStruct {
pub attrs: Vec<Attribute>,
pub path: Path,
pub brace_token: Brace,
pub fields: Punctuated<FieldPat, Comma>,
pub dot2_token: Option<Dot2>,
}
Expand description
A struct or struct variant pattern: Variant { x, y, .. }
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
path: Path
brace_token: Brace
fields: Punctuated<FieldPat, Comma>
dot2_token: Option<Dot2>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PatStruct
impl UnwindSafe for PatStruct
Blanket Implementations
Mutably borrows from an owned value. Read more