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 for ObjectProp<'a>
impl<'a> PartialEq for ObjectProp<'a>
Source§impl<'a> Ranged for ObjectProp<'a>
impl<'a> Ranged for ObjectProp<'a>
impl<'a> StructuralPartialEq for ObjectProp<'a>
Auto Trait Implementations§
impl<'a> Freeze for ObjectProp<'a>
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
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
)