pub struct Parser<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub fn new(source: &'a str) -> Self
pub fn cur_byte(&self) -> Option<u8>
pub fn eof(&self) -> bool
Sourcepub fn is_line_feed(&self) -> bool
pub fn is_line_feed(&self) -> bool
ⓘ
newline ::= U+000A LINE FEED
pub fn pos(&self) -> usize
pub fn scan_boundary(&mut self) -> Result<(usize, usize), Error>
Sourcepub fn scan_contents(&mut self) -> Result<(usize, usize), Error>
pub fn scan_contents(&mut self) -> Result<(usize, usize), Error>
ⓘ
contents ::= any sequence of characters that neither begins with boundary nor
includes U+000A LINE FEED followed immediately by boundary
pub fn expect_byte(&mut self, byte: u8) -> Result<(), Error>
pub fn scan_path_component(&mut self) -> Result<(usize, usize, &'a str), Error>
Auto Trait Implementations§
impl<'a> Freeze for Parser<'a>
impl<'a> RefUnwindSafe for Parser<'a>
impl<'a> Send for Parser<'a>
impl<'a> Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> UnwindSafe for Parser<'a>
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