pub trait SourceTrait {
// Required methods
fn included(&self) -> &Vec<SourceFile>;
fn syntax_ast(&self) -> &ParseOrErrors<SourceFile>;
fn print_syntax_errors(&self);
fn file_path(&self) -> PathBuf;
// Provided method
fn any_parse_errors(&self) -> bool { ... }
}Required Methods§
fn included(&self) -> &Vec<SourceFile>
fn syntax_ast(&self) -> &ParseOrErrors<SourceFile>
fn print_syntax_errors(&self)
fn file_path(&self) -> PathBuf
Provided Methods§
Sourcefn any_parse_errors(&self) -> bool
fn any_parse_errors(&self) -> bool
Return true if the source file or any included files produced a parse error.