pub struct JsonCursor<'de> { /* private fields */ }Expand description
A low-level, allocation-free cursor for routing selected object fields.
Prefer normal Serde deserialization for application models. JsonCursor is
intended for protocol envelopes whose hot path must inspect a few fields
and defer large nested values as crate::RawJson.
Implementations§
Source§impl<'de> JsonCursor<'de>
impl<'de> JsonCursor<'de>
Sourcepub const fn from_slice(input: &'de [u8]) -> Self
pub const fn from_slice(input: &'de [u8]) -> Self
Creates a cursor over a byte slice.
Auto Trait Implementations§
impl<'de> Freeze for JsonCursor<'de>
impl<'de> RefUnwindSafe for JsonCursor<'de>
impl<'de> Send for JsonCursor<'de>
impl<'de> Sync for JsonCursor<'de>
impl<'de> Unpin for JsonCursor<'de>
impl<'de> UnsafeUnpin for JsonCursor<'de>
impl<'de> UnwindSafe for JsonCursor<'de>
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