pub struct ElemId(/* private fields */);Expand description
Unique sequential index of a JSON Element within a document.
Assigned depth-first by the parser. Parser::alloc_id uses checked_add
so the counter never wraps silently — overflow becomes ParseError::TooLarge.
Trait Implementations§
impl Copy for ElemId
impl Eq for ElemId
Source§impl Ord for ElemId
impl Ord for ElemId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ElemId
impl PartialOrd for ElemId
impl StructuralPartialEq for ElemId
Auto Trait Implementations§
impl Freeze for ElemId
impl RefUnwindSafe for ElemId
impl Send for ElemId
impl Sync for ElemId
impl Unpin for ElemId
impl UnsafeUnpin for ElemId
impl UnwindSafe for ElemId
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