pub struct Object<'a> {
pub type_name: &'a str,
pub members: &'a [(&'a str, Value<'a>)],
}Expand description
A parsed object: a type name and a slice of named members.
All fields borrow from the parse arena (or the source buffer / stream
metadata), so Object is Copy and carries no Drop glue. This is what
lets it be bump-allocated safely.
Fields§
§type_name: &'a str§members: &'a [(&'a str, Value<'a>)]Implementations§
Trait Implementations§
impl<'a> Copy for Object<'a>
Auto Trait Implementations§
impl<'a> Freeze for Object<'a>
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> Send for Object<'a>
impl<'a> Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnsafeUnpin for Object<'a>
impl<'a> UnwindSafe for Object<'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