pub struct CharSeq<'a> {
pub pos: usize,
pub text: String,
pub place: String,
pub enable_hook: bool,
pub trace: bool,
/* private fields */
}Fields§
§pos: usize§text: String§place: String§enable_hook: bool§trace: boolImplementations§
Source§impl<'a> CharSeq<'a>
impl<'a> CharSeq<'a>
pub fn view(&self) -> &str
pub fn eof(&self) -> bool
pub fn new(t: &str, l: &str) -> CharSeq<'a>
pub fn fail<T>(&self, msg: &str) -> ParserResult<T>
pub fn get_location(&self) -> LocationInfo
pub fn current(&self) -> char
pub fn next(&mut self)
pub fn add_hook(&mut self, hook: &'a (dyn ParserHook + 'a))
pub fn do_hook(&mut self)
pub fn accept<T>(&mut self, p: &dyn Parser<T>) -> ParserResult<T>
Auto Trait Implementations§
impl<'a> Freeze for CharSeq<'a>
impl<'a> !RefUnwindSafe for CharSeq<'a>
impl<'a> !Send for CharSeq<'a>
impl<'a> !Sync for CharSeq<'a>
impl<'a> Unpin for CharSeq<'a>
impl<'a> !UnwindSafe for CharSeq<'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