pub struct ProgramFile {
pub file_id: u32,
pub is_entry: bool,
pub name: String,
pub path: String,
pub source: String,
pub script: Script,
pub stdlib_imports: Vec<(String, &'static Module)>,
pub user_imports: Vec<(String, u32)>,
}Expand description
One source file in the program, with its parsed script and resolved imports.
Fields§
§file_id: u32§is_entry: bool§name: StringThe module name (a user module’s import name, or the entry’s file stem).
path: String§source: String§script: Script§stdlib_imports: Vec<(String, &'static Module)>Imported stdlib modules: (local name, table entry).
user_imports: Vec<(String, u32)>Imported user modules: (local name, target file id).
Auto Trait Implementations§
impl Freeze for ProgramFile
impl RefUnwindSafe for ProgramFile
impl Send for ProgramFile
impl Sync for ProgramFile
impl Unpin for ProgramFile
impl UnsafeUnpin for ProgramFile
impl UnwindSafe for ProgramFile
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