Enum jsonc_parser::ast::ObjectPropName [−][src]
Represents an object property name that may or may not be in quotes.
Variants
String(StringLit<'a>)
Word(WordLit<'a>)
Implementations
impl<'a> ObjectPropName<'a>
[src]
pub fn into_string(self) -> String
[src]
Converts the object property name into a string.
pub fn as_str(&self) -> &str
[src]
Gets the object property name as a string reference.
Trait Implementations
impl<'a> Clone for ObjectPropName<'a>
[src]
fn clone(&self) -> ObjectPropName<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for ObjectPropName<'a>
[src]
impl<'a, 'b> From<&'b ObjectPropName<'a>> for Node<'a, 'b>
[src]
fn from(object_prop_name: &'b ObjectPropName<'a>) -> Node<'a, 'b>
[src]
impl<'a> PartialEq<ObjectPropName<'a>> for ObjectPropName<'a>
[src]
fn eq(&self, other: &ObjectPropName<'a>) -> bool
[src]
fn ne(&self, other: &ObjectPropName<'a>) -> bool
[src]
impl<'a> Ranged for ObjectPropName<'a>
[src]
fn range(&self) -> &Range
[src]
fn start(&self) -> usize
[src]
fn start_line(&self) -> usize
[src]
fn end(&self) -> usize
[src]
fn end_line(&self) -> usize
[src]
fn text<'a>(&self, text: &'a str) -> &'a str
[src]
fn start_position(&self) -> Position
[src]
fn end_position(&self) -> Position
[src]
fn width(&self) -> usize
[src]
impl<'a> StructuralPartialEq for ObjectPropName<'a>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,