Enum parse_js::ast::ObjectMemberType
source · pub enum ObjectMemberType {
Valued {
key: ClassOrObjectMemberKey,
value: ClassOrObjectMemberValue,
},
Shorthand {
name: SourceRange,
},
Rest {
value: NodeId,
},
}
Variants
Valued
Shorthand
Fields
name: SourceRange
Rest
Fields
value: NodeId
Trait Implementations
sourceimpl Clone for ObjectMemberType
impl Clone for ObjectMemberType
sourcefn clone(&self) -> ObjectMemberType
fn clone(&self) -> ObjectMemberType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ObjectMemberType
impl !Send for ObjectMemberType
impl !Sync for ObjectMemberType
impl Unpin for ObjectMemberType
impl UnwindSafe for ObjectMemberType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more