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 !Send for PatStruct
impl !Sync for PatStruct
impl Unpin for PatStruct
impl UnwindSafe for PatStruct
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more