pub struct Library {
pub programs: Vec<Program>,
pub dirs: Vec<PathBuf>,
pub copy: Libraries,
pub flags: Vec<String>,
pub trace_statements: Option<StatementFilter>,
pub trace_input: bool,
pub statement_limit: Option<u64>,
}Expand description
Where CALL finds programs: the other programs of the first program’s source, then program libraries searched by member name.
Fields§
§programs: Vec<Program>The programs not yet loaded: the first program’s source’s own, then those read from a library file, which name that file as their first source.
dirs: Vec<PathBuf>§copy: Libraries§flags: Vec<String>§trace_statements: Option<StatementFilter>The statements whose start the run unit tells its observer of (RunUnit::statements).
trace_input: boolWhether the run unit follows which bytes may hold input (RunUnit::taint).
statement_limit: Option<u64>How many statements may start before the run ends with S322 (RunUnit::statement_limit).
Implementations§
Trait Implementations§
Source§impl Loader<Rc<Compiled>> for Library
impl Loader<Rc<Compiled>> for Library
Source§fn program(
&mut self,
name: &str,
) -> Result<LoadedProgram<Rc<Compiled>>, LoadError>
fn program( &mut self, name: &str, ) -> Result<LoadedProgram<Rc<Compiled>>, LoadError>
The program whose PROGRAM-ID CALL names, compiled.
Source§fn holder(&self, entry: &str) -> Option<String>
fn holder(&self, entry: &str) -> Option<String>
The PROGRAM-ID of a program not yet loaded that has an ENTRY of this name.
Source§fn entry(program: &Rc<Compiled>, name: &str) -> Option<usize>
fn entry(program: &Rc<Compiled>, name: &str) -> Option<usize>
Which of a loaded program’s ENTRY statements has this name.
Source§fn shape(program: &Rc<Compiled>) -> (usize, usize)
fn shape(program: &Rc<Compiled>) -> (usize, usize)
A loaded program’s file count and storage size.
Source§fn nested(program: &Rc<Compiled>) -> &[String]
fn nested(program: &Rc<Compiled>) -> &[String]
The PROGRAM-IDs of the programs a loaded program contains, which a CANCEL of it reaches.
Source§fn source(program: &Rc<Compiled>, file: usize) -> Option<String>
fn source(program: &Rc<Compiled>, file: usize) -> Option<String>
Source file
file of a loaded program’s source table, by name.Auto Trait Implementations§
impl Freeze for Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnsafeUnpin for Library
impl UnwindSafe for Library
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