pub trait Source: Debug {
// Required methods
fn filename(&self) -> Option<String>;
fn eat(&mut self) -> Option<char>;
fn pos(&self) -> Pos;
fn peek(&self) -> Option<char>;
}Required Methods§
Sourcefn filename(&self) -> Option<String>
fn filename(&self) -> Option<String>
Get the filename of the source, or None if the source has no filename