pub struct StringReader { /* private fields */ }
Implementations§
Source§impl StringReader
impl StringReader
pub fn new(content: String, options: ParseOptions) -> Self
pub fn set_expected_regex(&mut self, expected: &'static str)
pub fn set_expected_string(&mut self, expected: &'static str)
pub fn set_expected_item<T: Parsable>(&mut self)
pub fn get_error(&self) -> ParseError
pub fn is_finished(&self) -> bool
pub fn get_index(&self) -> usize
pub fn get_index_backtracked(&self) -> usize
pub fn set_index(&mut self, index: usize)
pub fn advance(&mut self, length: usize) -> Option<&str>
pub fn as_str(&self) -> &str
pub fn as_char(&self) -> char
pub fn at(&self, index: usize) -> char
pub fn eat_spaces(&mut self)
pub fn read_function<F: Fn(&str) -> usize>(&mut self, f: F) -> Option<&str>
pub fn read_string(&mut self, string: &str) -> Option<&str>
pub fn read_regex(&mut self, pattern: &'static str) -> Option<&str>
pub fn peek_regex(&mut self, pattern: &'static str) -> bool
pub fn get_item_location(&self, start: usize) -> ItemLocation
pub fn get_marker(&self, name: &'static str) -> bool
pub fn declare_marker(&mut self, name: &'static str) -> u64
pub fn remove_marker(&mut self, id: u64)
pub fn set_marker(&mut self, name: &'static str, value: bool) -> bool
pub fn debug(&self, message: &str)
pub fn display_marker(&self, name: &'static str)
Auto Trait Implementations§
impl Freeze for StringReader
impl RefUnwindSafe for StringReader
impl !Send for StringReader
impl !Sync for StringReader
impl Unpin for StringReader
impl UnwindSafe for StringReader
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