pub struct Code { /* private fields */ }Expand description
A program as the VM’s run unit holds it: its LIR, or why it did not lower, with its ENTRY names, the file count and storage size the run unit gives it whether or not it lowered, and the PROGRAM-IDs of the programs it contains, which a CANCEL of it reaches.
Implementations§
Source§impl Code
impl Code
pub fn new( program: Result<Program, String>, entries: Vec<String>, files: usize, size: usize, nested: Vec<String>, ) -> Code
pub fn program(&self) -> Option<&Program>
Sourcepub fn entry(&self, name: &str) -> Option<usize>
pub fn entry(&self, name: &str) -> Option<usize>
Which ENTRY statement, in source order, has this name.
pub fn shape(&self) -> (usize, usize)
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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