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 !Send for ObjectProperty
impl !Sync for ObjectProperty
impl Forget for ObjectProperty
impl Freeze for ObjectProperty
impl Move for ObjectProperty
impl RefUnwindSafe for ObjectProperty
impl Unpin for ObjectProperty
impl UnsafeUnpin for ObjectPropertywhere
*const RcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<RcInner<[u8]>>: UnsafeUnpin,
*const RcInner<Vec<u8>> is !null: UnsafeUnpin,
PhantomData<RcInner<Vec<u8>>>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ObjectPropertywhere
Rc<[u8]>: UnwindSafe,
Rc<Vec<u8>>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
RawVecInner: UnwindSafe,
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