pub enum ObjectPropName<'a> {
String(StringLit<'a>),
Word(WordLit<'a>),
}
Expand description
Represents an object property name that may or may not be in quotes.
Variants§
Implementations§
Source§impl<'a> ObjectPropName<'a>
impl<'a> ObjectPropName<'a>
Trait Implementations§
Source§impl<'a> Clone for ObjectPropName<'a>
impl<'a> Clone for ObjectPropName<'a>
Source§fn clone(&self) -> ObjectPropName<'a>
fn clone(&self) -> ObjectPropName<'a>
Returns a copy 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<'a> Debug for ObjectPropName<'a>
impl<'a> Debug for ObjectPropName<'a>
Source§impl<'a, 'b> From<&'b ObjectPropName<'a>> for Node<'a, 'b>
impl<'a, 'b> From<&'b ObjectPropName<'a>> for Node<'a, 'b>
Source§fn from(object_prop_name: &'b ObjectPropName<'a>) -> Node<'a, 'b>
fn from(object_prop_name: &'b ObjectPropName<'a>) -> Node<'a, 'b>
Converts to this type from the input type.
Source§impl<'a> PartialEq for ObjectPropName<'a>
impl<'a> PartialEq for ObjectPropName<'a>
Source§impl<'a> Ranged for ObjectPropName<'a>
impl<'a> Ranged for ObjectPropName<'a>
impl<'a> StructuralPartialEq for ObjectPropName<'a>
Auto Trait Implementations§
impl<'a> Freeze for ObjectPropName<'a>
impl<'a> RefUnwindSafe for ObjectPropName<'a>
impl<'a> Send for ObjectPropName<'a>
impl<'a> Sync for ObjectPropName<'a>
impl<'a> Unpin for ObjectPropName<'a>
impl<'a> UnwindSafe for ObjectPropName<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)