Struct arithmetic_parser::Destructure
source · pub struct Destructure<'a, T> {
pub start: Vec<SpannedLvalue<'a, T>>,
pub middle: Option<Spanned<'a, DestructureRest<'a, T>>>,
pub end: Vec<SpannedLvalue<'a, T>>,
}
Expand description
Tuple destructuring, such as (a, b, ..., c)
.
Fields§
§start: Vec<SpannedLvalue<'a, T>>
Start part of the destructuring, e.g, a
and b
in (a, b, ..., c)
.
middle: Option<Spanned<'a, DestructureRest<'a, T>>>
Middle part of the destructuring, e.g., rest
in (a, b, ...rest, _)
.
end: Vec<SpannedLvalue<'a, T>>
End part of the destructuring, e.g., c
in (a, b, ..., c)
.
Implementations§
Trait Implementations§
source§impl<'a, T: Clone> Clone for Destructure<'a, T>
impl<'a, T: Clone> Clone for Destructure<'a, T>
source§fn clone(&self) -> Destructure<'a, T>
fn clone(&self) -> Destructure<'a, T>
Returns a copy 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, T: Debug> Debug for Destructure<'a, T>
impl<'a, T: Debug> Debug for Destructure<'a, T>
source§impl<'a, T: PartialEq> PartialEq for Destructure<'a, T>
impl<'a, T: PartialEq> PartialEq for Destructure<'a, T>
source§fn eq(&self, other: &Destructure<'a, T>) -> bool
fn eq(&self, other: &Destructure<'a, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a, T> StructuralPartialEq for Destructure<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Destructure<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Destructure<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Destructure<'a, T>where
T: Send,
impl<'a, T> Sync for Destructure<'a, T>where
T: Sync,
impl<'a, T> Unpin for Destructure<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Destructure<'a, T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)