pub struct Reader { /* private fields */ }
Implementations
sourceimpl Reader
impl Reader
pub fn next(&mut self) -> Option<char>
pub fn peek(&mut self) -> Option<char>
pub fn tell(&self) -> Offset
pub fn eof(&mut self) -> bool
pub fn reset(&mut self, offset: Offset)
sourcepub fn capture_last(&self, length: usize) -> Range
pub fn capture_last(&self, length: usize) -> Range
Capture last length characters.
pub fn capture_from(&self, start: &Offset) -> Range
pub fn print(&self, start: usize)
Auto Trait Implementations
impl !RefUnwindSafe for Reader
impl !Send for Reader
impl !Sync for Reader
impl Unpin for Reader
impl !UnwindSafe for Reader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more