pub struct TextParser<'a> {
pos: usize,
text: &'a str,
}
Fields§
§pos: usize
§text: &'a str
Implementations§
Source§impl<'a> TextParser<'a>
impl<'a> TextParser<'a>
pub fn new(text: &'a str) -> Self
pub fn at_end(&self) -> bool
pub fn curr_byte(&self) -> Option<u8>
fn curr_byte_unchecked(&self) -> u8
pub fn advance(&mut self, n: usize)
pub fn consume_byte(&mut self, c: u8) -> Option<()>
pub fn skip_spaces(&mut self)
pub fn consume_quote(&mut self) -> Option<u8>
pub fn consume_bytes<F>(&mut self, f: F) -> &'a str
pub fn skip_bytes<F>(&mut self, f: F)
pub fn consume_tag(&mut self) -> Option<hb_tag_t>
pub fn consume_i32(&mut self) -> Option<i32>
pub fn consume_f32(&mut self) -> Option<f32>
pub fn consume_bool(&mut self) -> Option<bool>
Auto Trait Implementations§
impl<'a> Freeze for TextParser<'a>
impl<'a> RefUnwindSafe for TextParser<'a>
impl<'a> Send for TextParser<'a>
impl<'a> Sync for TextParser<'a>
impl<'a> Unpin for TextParser<'a>
impl<'a> UnwindSafe for TextParser<'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