Struct json5format::Object
source · pub struct Object { /* private fields */ }
Expand description
A specialized struct to represent the data of JSON5 object, including any comments placed at the end of the object.
Implementations§
source§impl Object
impl Object
sourcepub fn properties(&self) -> impl Iterator<Item = &Property>
pub fn properties(&self) -> impl Iterator<Item = &Property>
Retrieves an iterator from the properties
field.
sourcepub fn properties_mut(&mut self) -> impl Iterator<Item = &mut Property>
pub fn properties_mut(&mut self) -> impl Iterator<Item = &mut Property>
Retrieves an iterator of mutable references from the properties
field.
sourcepub fn trailing_comments(&self) -> &Vec<Comment>
pub fn trailing_comments(&self) -> &Vec<Comment>
Returns a reference to the comments at the end of an object not associated with any values.
sourcepub fn trailing_comments_mut(&mut self) -> &mut Vec<Comment>
pub fn trailing_comments_mut(&mut self) -> &mut Vec<Comment>
Returns a mutable reference to the comments at the end of an object not associated with any values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl !RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl !UnwindSafe for Object
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