pub enum ObjectProp {
LiteralProp(LiteralProp),
Getter(Getter),
Setter(Setter),
SpreadProp(SpreadProp),
InitializedProp(InitializedProp),
IdentProp(IdentProp),
Method(Method),
}Expand description
Variants§
LiteralProp(LiteralProp)
Getter(Getter)
Setter(Setter)
SpreadProp(SpreadProp)
InitializedProp(InitializedProp)
IdentProp(IdentProp)
Method(Method)
Implementations§
Source§impl ObjectProp
impl ObjectProp
pub fn key(&self) -> Option<String>
pub fn key_element(&self) -> Option<SyntaxElement>
Trait Implementations§
Source§impl AstNode for ObjectProp
impl AstNode for ObjectProp
Source§impl Clone for ObjectProp
impl Clone for ObjectProp
Source§fn clone(&self) -> ObjectProp
fn clone(&self) -> ObjectProp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectProp
impl Debug for ObjectProp
Source§impl Display for ObjectProp
impl Display for ObjectProp
Source§impl From<Getter> for ObjectProp
impl From<Getter> for ObjectProp
Source§fn from(node: Getter) -> ObjectProp
fn from(node: Getter) -> ObjectProp
Converts to this type from the input type.
Source§impl From<IdentProp> for ObjectProp
impl From<IdentProp> for ObjectProp
Source§fn from(node: IdentProp) -> ObjectProp
fn from(node: IdentProp) -> ObjectProp
Converts to this type from the input type.
Source§impl From<InitializedProp> for ObjectProp
impl From<InitializedProp> for ObjectProp
Source§fn from(node: InitializedProp) -> ObjectProp
fn from(node: InitializedProp) -> ObjectProp
Converts to this type from the input type.
Source§impl From<LiteralProp> for ObjectProp
impl From<LiteralProp> for ObjectProp
Source§fn from(node: LiteralProp) -> ObjectProp
fn from(node: LiteralProp) -> ObjectProp
Converts to this type from the input type.
Source§impl From<Method> for ObjectProp
impl From<Method> for ObjectProp
Source§fn from(node: Method) -> ObjectProp
fn from(node: Method) -> ObjectProp
Converts to this type from the input type.
Source§impl From<Setter> for ObjectProp
impl From<Setter> for ObjectProp
Source§fn from(node: Setter) -> ObjectProp
fn from(node: Setter) -> ObjectProp
Converts to this type from the input type.
Source§impl From<SpreadProp> for ObjectProp
impl From<SpreadProp> for ObjectProp
Source§fn from(node: SpreadProp) -> ObjectProp
fn from(node: SpreadProp) -> ObjectProp
Converts to this type from the input type.
Source§impl Hash for ObjectProp
impl Hash for ObjectProp
Source§impl PartialEq for ObjectProp
impl PartialEq for ObjectProp
impl Eq for ObjectProp
impl StructuralPartialEq for ObjectProp
Auto Trait Implementations§
impl Freeze for ObjectProp
impl RefUnwindSafe for ObjectProp
impl Send for ObjectProp
impl Sync for ObjectProp
impl Unpin for ObjectProp
impl UnwindSafe for ObjectProp
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