Struct jsonc_parser::ast::ObjectProp
source · pub struct ObjectProp<'a> {
pub range: Range,
pub name: ObjectPropName<'a>,
pub value: Value<'a>,
}
Expand description
Represents an object property (ex. "prop": []
).
Fields§
§range: Range
§name: ObjectPropName<'a>
§value: Value<'a>
Trait Implementations§
source§impl<'a> Clone for ObjectProp<'a>
impl<'a> Clone for ObjectProp<'a>
source§fn clone(&self) -> ObjectProp<'a>
fn clone(&self) -> ObjectProp<'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 ObjectProp<'a>
impl<'a> Debug for ObjectProp<'a>
source§impl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
impl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
source§fn from(node: &'b ObjectProp<'a>) -> Node<'a, 'b>
fn from(node: &'b ObjectProp<'a>) -> Node<'a, 'b>
Converts to this type from the input type.
source§impl<'a> PartialEq<ObjectProp<'a>> for ObjectProp<'a>
impl<'a> PartialEq<ObjectProp<'a>> for ObjectProp<'a>
source§fn eq(&self, other: &ObjectProp<'a>) -> bool
fn eq(&self, other: &ObjectProp<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Ranged for ObjectProp<'a>
impl<'a> Ranged for ObjectProp<'a>
impl<'a> StructuralPartialEq for ObjectProp<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ObjectProp<'a>
impl<'a> Send for ObjectProp<'a>
impl<'a> Sync for ObjectProp<'a>
impl<'a> Unpin for ObjectProp<'a>
impl<'a> UnwindSafe for ObjectProp<'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