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 } }