Enum sway_ast::pattern::PatternStructField
source · pub enum PatternStructField {
Rest {
token: DoubleDotToken,
},
Field {
field_name: Ident,
pattern_opt: Option<(ColonToken, Box<Pattern>)>,
},
}
Variants§
Trait Implementations§
source§impl Clone for PatternStructField
impl Clone for PatternStructField
source§fn clone(&self) -> PatternStructField
fn clone(&self) -> PatternStructField
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 Debug for PatternStructField
impl Debug for PatternStructField
source§impl Serialize for PatternStructField
impl Serialize for PatternStructField
Auto Trait Implementations§
impl RefUnwindSafe for PatternStructField
impl Send for PatternStructField
impl Sync for PatternStructField
impl Unpin for PatternStructField
impl UnwindSafe for PatternStructField
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