pub struct Fragment {
pub start: usize,
pub length: usize,
pub status: FragmentStatus,
}Expand description
Represents a found JSON fragment
A fragment identifies a JSON object or array in the input stream, including its position and completion status.
Fields§
§start: usizeAbsolute byte offset from the start of the first chunk
length: usizeLength of the fragment in bytes
status: FragmentStatusCompletion status
Implementations§
Trait Implementations§
impl Eq for Fragment
impl StructuralPartialEq for Fragment
Auto Trait Implementations§
impl Freeze for Fragment
impl RefUnwindSafe for Fragment
impl Send for Fragment
impl Sync for Fragment
impl Unpin for Fragment
impl UnsafeUnpin for Fragment
impl UnwindSafe for Fragment
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