Enum jsonc_parser::ast::ObjectPropName
source · 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<ObjectPropName<'a>> for ObjectPropName<'a>
impl<'a> PartialEq<ObjectPropName<'a>> for ObjectPropName<'a>
source§fn eq(&self, other: &ObjectPropName<'a>) -> bool
fn eq(&self, other: &ObjectPropName<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Ranged for ObjectPropName<'a>
impl<'a> Ranged for ObjectPropName<'a>
impl<'a> StructuralPartialEq for ObjectPropName<'a>
Auto Trait Implementations§
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