pub enum PropertyName {
Literal(Box<str>),
Computed(Node),
}
Expand description
Variants§
Literal(Box<str>)
A Literal
property name can be either an identifier, a string or a numeric literal.
More information:
Computed(Node)
A Computed
property name is an expression that gets evaluated and converted into a property name.
More information:
Trait Implementations§
Source§impl Clone for PropertyName
impl Clone for PropertyName
Source§fn clone(&self) -> PropertyName
fn clone(&self) -> PropertyName
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 PropertyName
impl Debug for PropertyName
Source§impl Display for PropertyName
impl Display for PropertyName
Source§impl From<Node> for PropertyName
impl From<Node> for PropertyName
Source§impl<T> From<T> for PropertyName
impl<T> From<T> for PropertyName
Source§impl PartialEq for PropertyName
impl PartialEq for PropertyName
Source§impl Trace for PropertyName
impl Trace for PropertyName
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for PropertyName
Auto Trait Implementations§
impl Freeze for PropertyName
impl RefUnwindSafe for PropertyName
impl !Send for PropertyName
impl !Sync for PropertyName
impl Unpin for PropertyName
impl UnwindSafe for PropertyName
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