pub enum ObjectProperty {
Property {
key: PropName,
value: Box<Expr>,
kind: PropertyKind,
shorthand: bool,
span: Span,
},
Spread(Box<Expr>),
}Expand description
One property of an object literal.
Variants§
Property
key: value, key, get key() {}, [key]: value, …
Fields
§
kind: PropertyKindWhether this stores a value or defines an accessor/method.
Spread(Box<Expr>)
...spread
Trait Implementations§
Source§impl Clone for ObjectProperty
impl Clone for ObjectProperty
Source§impl Debug for ObjectProperty
impl Debug for ObjectProperty
Source§impl PartialEq for ObjectProperty
impl PartialEq for ObjectProperty
impl StructuralPartialEq for ObjectProperty
Auto Trait Implementations§
impl Forget for ObjectProperty
impl Freeze for ObjectProperty
impl Move for ObjectProperty
impl RefUnwindSafe for ObjectProperty
impl Send for ObjectProperty
impl Sync for ObjectProperty
impl Unpin for ObjectProperty
impl UnsafeUnpin for ObjectPropertywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
impl UnwindSafe for ObjectProperty
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