sark-json 0.28.0

Borrowed JSON decoding and streaming encoding for sark
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::segment::input::Input;

/// Immutable owners of one complete JSON compound whose grammar was admitted.
pub struct Admitted<'d> {
    pub(in crate::segment) input: Input<'d>,
}

impl Admitted<'_> {
    pub fn release(&mut self, budget: &mut usize) -> std::task::Poll<()> {
        self.input.release(budget).0
    }
}