pub struct ListPatternElement {
pub name: String,
pub is_rest: bool,
}Expand description
An element in a list destructuring pattern.
Fields§
§name: StringThe variable name to bind.
is_rest: boolTrue for ...rest (rest pattern).
Trait Implementations§
Source§impl Clone for ListPatternElement
impl Clone for ListPatternElement
Source§fn clone(&self) -> ListPatternElement
fn clone(&self) -> ListPatternElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListPatternElement
impl Debug for ListPatternElement
Source§impl PartialEq for ListPatternElement
impl PartialEq for ListPatternElement
impl StructuralPartialEq for ListPatternElement
Auto Trait Implementations§
impl Freeze for ListPatternElement
impl RefUnwindSafe for ListPatternElement
impl Send for ListPatternElement
impl Sync for ListPatternElement
impl Unpin for ListPatternElement
impl UnsafeUnpin for ListPatternElement
impl UnwindSafe for ListPatternElement
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