pub struct DictPatternField {
pub key: String,
pub alias: Option<String>,
pub is_rest: bool,
}Expand description
A field in a dict destructuring pattern.
Fields§
§key: StringThe dict key to extract.
alias: Option<String>Renamed binding (if different from key), e.g. {name: alias}.
is_rest: boolTrue for ...rest (rest pattern).
Trait Implementations§
Source§impl Clone for DictPatternField
impl Clone for DictPatternField
Source§fn clone(&self) -> DictPatternField
fn clone(&self) -> DictPatternField
Returns a duplicate 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 DictPatternField
impl Debug for DictPatternField
Source§impl PartialEq for DictPatternField
impl PartialEq for DictPatternField
impl StructuralPartialEq for DictPatternField
Auto Trait Implementations§
impl Freeze for DictPatternField
impl RefUnwindSafe for DictPatternField
impl Send for DictPatternField
impl Sync for DictPatternField
impl Unpin for DictPatternField
impl UnsafeUnpin for DictPatternField
impl UnwindSafe for DictPatternField
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