pub struct BasicParser { /* private fields */ }Expand description
Basic parser implementation that converts tokens to events
Implementations§
Source§impl BasicParser
impl BasicParser
Sourcepub fn with_limits(input: String, limits: Limits) -> Self
pub fn with_limits(input: String, limits: Limits) -> Self
Create a new streaming parser with custom limits
Sourcepub fn new_eager(input: String) -> Self
pub fn new_eager(input: String) -> Self
Create a new parser with eager parsing (for compatibility)
Sourcepub fn new_eager_with_limits(input: String, limits: Limits) -> Self
pub fn new_eager_with_limits(input: String, limits: Limits) -> Self
Create a new parser with eager parsing and custom limits
Sourcepub fn from_scanner(scanner: BasicScanner) -> Self
pub fn from_scanner(scanner: BasicScanner) -> Self
Create parser from existing scanner
Source§impl BasicParser
impl BasicParser
Sourcepub fn take_scanning_error(&mut self) -> Option<Error>
pub fn take_scanning_error(&mut self) -> Option<Error>
Check if there was a scanning error
Trait Implementations§
Source§impl Debug for BasicParser
impl Debug for BasicParser
Source§impl Default for BasicParser
impl Default for BasicParser
Source§impl Parser for BasicParser
impl Parser for BasicParser
Source§fn check_event(&self) -> bool
fn check_event(&self) -> bool
Check if there are more events available
Auto Trait Implementations§
impl Freeze for BasicParser
impl !RefUnwindSafe for BasicParser
impl Send for BasicParser
impl Sync for BasicParser
impl Unpin for BasicParser
impl !UnwindSafe for BasicParser
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