pub struct PatSlice {
pub attrs: Vec<Attribute>,
pub bracket_token: Bracket,
pub elems: Punctuated<Pat, Comma>,
}
Expand description
A dynamically sized slice pattern: [a, b, ref i @ .., y, z]
.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
bracket_token: Bracket
elems: Punctuated<Pat, Comma>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PatSlice
impl !Send for PatSlice
impl !Sync for PatSlice
impl Unpin for PatSlice
impl UnwindSafe for PatSlice
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