Enum esr::ast::expression::Property
source · pub enum Property<'ast> {
Shorthand(&'ast str),
Literal {
key: Node<'ast, PropertyKey<'ast>>,
value: ExpressionNode<'ast>,
},
Method {
key: Node<'ast, PropertyKey<'ast>>,
value: Node<'ast, Function<'ast, EmptyName>>,
},
Spread {
argument: ExpressionNode<'ast>,
},
}
Variants
Shorthand(&'ast str)
Literal
Method
Spread
Fields
argument: ExpressionNode<'ast>
Trait Implementations
sourceimpl<'ast> PartialEq<Property<'ast>> for Property<'ast>
impl<'ast> PartialEq<Property<'ast>> for Property<'ast>
impl<'ast> Copy for Property<'ast>
impl<'ast> StructuralPartialEq for Property<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for Property<'ast>
impl<'ast> Send for Property<'ast>
impl<'ast> !Sync for Property<'ast>
impl<'ast> Unpin for Property<'ast>
impl<'ast> UnwindSafe for Property<'ast>
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