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].
Fields§
§attrs: Vec<Attribute>§bracket_token: Bracket§elems: Punctuated<Pat, Comma>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatSlice
impl RefUnwindSafe for PatSlice
impl !Send for PatSlice
impl !Sync for PatSlice
impl Unpin for PatSlice
impl UnwindSafe for PatSlice
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