pub enum ArrayPatPart<'a> {
Pat(Pat<'a>),
Expr(Expr<'a>),
Rest(RestPat<'a>),
}Variants§
Trait Implementations§
Source§impl<'a> Clone for ArrayPatPart<'a>
impl<'a> Clone for ArrayPatPart<'a>
Source§fn clone(&self) -> ArrayPatPart<'a>
fn clone(&self) -> ArrayPatPart<'a>
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<'a> Debug for ArrayPatPart<'a>
impl<'a> Debug for ArrayPatPart<'a>
Source§impl<'a> From<ArrayPatPart<'a>> for ArrayPatPart<'a>
impl<'a> From<ArrayPatPart<'a>> for ArrayPatPart<'a>
Source§fn from(other: ArrayPatPart<'a>) -> Self
fn from(other: ArrayPatPart<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Node for ArrayPatPart<'a>
impl<'a> Node for ArrayPatPart<'a>
fn loc(&self) -> SourceLocation
Source§impl<'a> PartialEq for ArrayPatPart<'a>
impl<'a> PartialEq for ArrayPatPart<'a>
impl<'a> StructuralPartialEq for ArrayPatPart<'a>
Auto Trait Implementations§
impl<'a> Freeze for ArrayPatPart<'a>
impl<'a> RefUnwindSafe for ArrayPatPart<'a>
impl<'a> Send for ArrayPatPart<'a>
impl<'a> Sync for ArrayPatPart<'a>
impl<'a> Unpin for ArrayPatPart<'a>
impl<'a> UnwindSafe for ArrayPatPart<'a>
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