pub struct Reader { /* private fields */ }
Implementations§
Source§impl Reader
impl Reader
pub fn from_input() -> Result<Reader, Error>
pub fn from_file(filename: &str) -> Result<Reader, Error>
pub fn from_string(filename: &str, src: &str) -> Reader
pub fn set_tabwidth(&mut self, tabwidth: u32)
pub fn path(&self) -> &str
pub fn advance(&mut self) -> Option<char>
pub fn file(self) -> File
pub fn curr(&self) -> Option<char>
pub fn nth(&self, offset: usize) -> Option<char>
pub fn pos(&self) -> Position
pub fn idx(&self) -> u32
Auto Trait Implementations§
impl Freeze for Reader
impl RefUnwindSafe for Reader
impl Send for Reader
impl Sync for Reader
impl Unpin for Reader
impl UnwindSafe for Reader
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