Enum sway_ast::pattern::PatternStructField
source · [−]pub enum PatternStructField {
Rest {
token: DoubleDotToken,
},
Field {
field_name: Ident,
pattern_opt: Option<(ColonToken, Box<Pattern>)>,
},
}
Variants
Rest
Fields
token: DoubleDotToken
Field
Trait Implementations
sourceimpl Clone for PatternStructField
impl Clone for PatternStructField
sourcefn clone(&self) -> PatternStructField
fn clone(&self) -> PatternStructField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PatternStructField
impl Debug 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more