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
sourceimpl<'a> Clone for ObjectProp<'a>
impl<'a> Clone for ObjectProp<'a>
sourcefn clone(&self) -> ObjectProp<'a>
fn clone(&self) -> ObjectProp<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for ObjectProp<'a>
impl<'a> Debug for ObjectProp<'a>
sourceimpl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
impl<'a, 'b> From<&'b ObjectProp<'a>> for Node<'a, 'b>
sourcefn 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.
sourceimpl<'a> PartialEq<ObjectProp<'a>> for ObjectProp<'a>
impl<'a> PartialEq<ObjectProp<'a>> for ObjectProp<'a>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ObjectProp<'a>) -> bool
fn ne(&self, other: &ObjectProp<'a>) -> bool
This method tests for !=
.
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more