#[non_exhaustive]pub enum RecordPatternSyntax {
Braces,
With,
}Expand description
Record-pattern field syntax: explicit braces or layout with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for RecordPatternSyntax
impl Clone for RecordPatternSyntax
Source§fn clone(&self) -> RecordPatternSyntax
fn clone(&self) -> RecordPatternSyntax
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RecordPatternSyntax
Source§impl Debug for RecordPatternSyntax
impl Debug for RecordPatternSyntax
impl Eq for RecordPatternSyntax
Source§impl PartialEq for RecordPatternSyntax
impl PartialEq for RecordPatternSyntax
Source§fn eq(&self, other: &RecordPatternSyntax) -> bool
fn eq(&self, other: &RecordPatternSyntax) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordPatternSyntax
Auto Trait Implementations§
impl Freeze for RecordPatternSyntax
impl RefUnwindSafe for RecordPatternSyntax
impl Send for RecordPatternSyntax
impl Sync for RecordPatternSyntax
impl Unpin for RecordPatternSyntax
impl UnsafeUnpin for RecordPatternSyntax
impl UnwindSafe for RecordPatternSyntax
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