Struct oq3_source_file::SourceFile
source · pub struct SourceFile { /* private fields */ }Implementations§
source§impl SourceFile
impl SourceFile
pub fn new<F: AsRef<Path>>( file_path: F, syntax_ast: Parse<SourceFile>, included: Vec<SourceFile> ) -> SourceFile
pub fn file_path(&self) -> &PathBuf
Trait Implementations§
source§impl Clone for SourceFile
impl Clone for SourceFile
source§fn clone(&self) -> SourceFile
fn clone(&self) -> SourceFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SourceFile
impl Debug for SourceFile
source§impl SourceTrait for SourceFile
impl SourceTrait for SourceFile
fn syntax_ast(&self) -> &Parse<SourceFile>
fn included(&self) -> &Vec<SourceFile>
fn file_path(&self) -> PathBuf
fn print_syntax_errors(&self)
source§fn 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.Auto Trait Implementations§
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnwindSafe for SourceFile
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