pub struct ObjectPatternField {
pub source: Ident,
pub local: Ident,
pub default: Option<ExprId>,
pub span: Span,
}Expand description
source is the field name on the RHS; local is the binding name. Equal for shorthand { a }, differ for { a: x }.
Fields§
§source: Ident§local: Ident§default: Option<ExprId>§span: SpanTrait Implementations§
Source§impl Clone for ObjectPatternField
impl Clone for ObjectPatternField
Source§impl Debug for ObjectPatternField
impl Debug for ObjectPatternField
Source§impl PartialEq for ObjectPatternField
impl PartialEq for ObjectPatternField
impl StructuralPartialEq for ObjectPatternField
Auto Trait Implementations§
impl Freeze for ObjectPatternField
impl RefUnwindSafe for ObjectPatternField
impl Send for ObjectPatternField
impl Sync for ObjectPatternField
impl Unpin for ObjectPatternField
impl UnsafeUnpin for ObjectPatternField
impl UnwindSafe for ObjectPatternField
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