pub enum ObjectPropertyKind {
Init,
Get,
Set,
Method,
}Expand description
Distinguishes the kinds of object-literal members.
Variants§
Init
A plain data property ({ x: 1 }).
Get
A getter ({ get x() { ... } }).
Set
A setter ({ set x(v) { ... } }).
Method
A shorthand method ({ x() { ... } }).
Trait Implementations§
Source§impl Clone for ObjectPropertyKind
impl Clone for ObjectPropertyKind
Source§fn clone(&self) -> ObjectPropertyKind
fn clone(&self) -> ObjectPropertyKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ObjectPropertyKind
Source§impl Debug for ObjectPropertyKind
impl Debug for ObjectPropertyKind
impl Eq for ObjectPropertyKind
Source§impl PartialEq for ObjectPropertyKind
impl PartialEq for ObjectPropertyKind
impl StructuralPartialEq for ObjectPropertyKind
Auto Trait Implementations§
impl Freeze for ObjectPropertyKind
impl RefUnwindSafe for ObjectPropertyKind
impl Send for ObjectPropertyKind
impl Sync for ObjectPropertyKind
impl Unpin for ObjectPropertyKind
impl UnsafeUnpin for ObjectPropertyKind
impl UnwindSafe for ObjectPropertyKind
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