pub struct Program {
pub constants: Vec<Const>,
pub functions: Vec<Function>,
pub function_names: IndexMap<String, u32>,
pub module_aliases: IndexMap<String, String>,
pub entry: Option<u32>,
}Fields§
§constants: Vec<Const>§functions: Vec<Function>§function_names: IndexMap<String, u32>Global function names → function index in functions.
module_aliases: IndexMap<String, String>Imported module aliases → module name (e.g., io → io).
Used by the compiler/runtime to dispatch alias.op(...) calls.
entry: Option<u32>Entry function (for lex run, set to whatever function the user
chose to invoke). Optional.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Program
impl<'de> Deserialize<'de> for Program
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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