pub struct StreamParser { /* private fields */ }Expand description
Collects a streamed source and parses it once, when finish is called.
Bytes beyond the mode’s size limit, plus a three-byte margin for a split
UTF-8 character, are counted but not kept. finish then marks the
document shortened, and in program mode also refuses it
(E_SOURCE_TOO_LARGE, no nodes), so a program is never run from a cut-off
prefix. No partial parse is offered while bytes are still arriving.
Implementations§
Auto Trait Implementations§
impl Freeze for StreamParser
impl RefUnwindSafe for StreamParser
impl Send for StreamParser
impl Sync for StreamParser
impl Unpin for StreamParser
impl UnsafeUnpin for StreamParser
impl UnwindSafe for StreamParser
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