Struct arithmetic_parser::ObjectDestructure
source · #[non_exhaustive]pub struct ObjectDestructure<'a, T> {
pub fields: Vec<ObjectDestructureField<'a, T>>,
}
Expand description
Object destructuring, such as { x, y: new_y }
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.fields: Vec<ObjectDestructureField<'a, T>>
Fields mentioned in the destructuring.
Trait Implementations§
source§impl<'a, T: Clone> Clone for ObjectDestructure<'a, T>
impl<'a, T: Clone> Clone for ObjectDestructure<'a, T>
source§fn clone(&self) -> ObjectDestructure<'a, T>
fn clone(&self) -> ObjectDestructure<'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 ObjectDestructure<'a, T>
impl<'a, T: Debug> Debug for ObjectDestructure<'a, T>
source§impl<'a, T: PartialEq> PartialEq for ObjectDestructure<'a, T>
impl<'a, T: PartialEq> PartialEq for ObjectDestructure<'a, T>
source§fn eq(&self, other: &ObjectDestructure<'a, T>) -> bool
fn eq(&self, other: &ObjectDestructure<'a, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a, T> StructuralPartialEq for ObjectDestructure<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ObjectDestructure<'a, T>
impl<'a, T> RefUnwindSafe for ObjectDestructure<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ObjectDestructure<'a, T>where
T: Send,
impl<'a, T> Sync for ObjectDestructure<'a, T>where
T: Sync,
impl<'a, T> Unpin for ObjectDestructure<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for ObjectDestructure<'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
)