pub struct InputParser { /* private fields */ }Expand description
Parser state for multi-byte sequences.
Implementations§
Source§impl InputParser
impl InputParser
Sourcepub fn parse(&mut self, input: &[u8]) -> ParseResult
pub fn parse(&mut self, input: &[u8]) -> ParseResult
Parse bytes into an event.
Returns the event and number of bytes consumed, or an error.
Call repeatedly with the same buffer until Err(ParseError::Empty)
or Err(ParseError::Incomplete) is returned.
Trait Implementations§
Source§impl Clone for InputParser
impl Clone for InputParser
Source§fn clone(&self) -> InputParser
fn clone(&self) -> InputParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputParser
impl Debug for InputParser
Source§impl Default for InputParser
impl Default for InputParser
Source§fn default() -> InputParser
fn default() -> InputParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InputParser
impl RefUnwindSafe for InputParser
impl Send for InputParser
impl Sync for InputParser
impl Unpin for InputParser
impl UnsafeUnpin for InputParser
impl UnwindSafe for InputParser
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