pub enum TypedObjectMember {
Computed {
key: ExprId,
value: ExprId,
},
Value(ExprId),
Spread {
source: ExprId,
by_name: bool,
},
}Expand description
One member of an object literal, in source order.
Variants§
Computed
Value(ExprId)
A field’s value.
Spread
A spread’s source object. by_name is set when the source has no one
layout — its type is a union of object types, or it is a conditional
whose branches differ — so each field is found by name at run time, and
one the object lacks reads as absent.
Implementations§
Trait Implementations§
Source§impl Clone for TypedObjectMember
impl Clone for TypedObjectMember
impl Copy for TypedObjectMember
Source§impl Debug for TypedObjectMember
impl Debug for TypedObjectMember
Source§impl PartialEq for TypedObjectMember
impl PartialEq for TypedObjectMember
impl StructuralPartialEq for TypedObjectMember
Auto Trait Implementations§
impl Freeze for TypedObjectMember
impl RefUnwindSafe for TypedObjectMember
impl Send for TypedObjectMember
impl Sync for TypedObjectMember
impl Unpin for TypedObjectMember
impl UnsafeUnpin for TypedObjectMember
impl UnwindSafe for TypedObjectMember
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