pub struct Document<'d> { /* private fields */ }Expand description
Parsed field index that continues to own every original transport segment.
Implementations§
Source§impl<'d> Document<'d>
impl<'d> Document<'d>
Sourcepub fn retire(&mut self, budget: &mut usize) -> Poll<()>
pub fn retire(&mut self, budget: &mut usize) -> Poll<()>
Retires field slots and input owners within the remaining work budget.
Sourcepub fn release(self) -> Release<'d>
pub fn release(self) -> Release<'d>
Ends projection and retains the remaining owners for bounded release.
Sourcepub fn field(&self, field: usize) -> Result<Option<Value<'_, 'd>>, Error>
pub fn field(&self, field: usize) -> Result<Option<Value<'_, 'd>>, Error>
Borrows one field and its original input after a single table lookup. A missing field is distinct from an invalid index or a JSON null value.
pub fn u64(&self, field: usize) -> Result<u64, Error>
pub fn raw(&self, field: usize) -> Result<Raw<Shared>, Error>
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for Document<'d>
impl<'d> !Send for Document<'d>
impl<'d> !Sync for Document<'d>
impl<'d> !UnwindSafe for Document<'d>
impl<'d> Forget for Document<'d>
impl<'d> Freeze for Document<'d>
impl<'d> Unpin for Document<'d>
impl<'d> UnsafeUnpin for Document<'d>
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