pub struct ScriptInfo<'a> {
pub funcs: Vec<(&'a Function, usize)>,
pub entities: Vec<(&'a Entity, EntityScriptInfo<'a>)>,
}
Expand description
Script information in a ByteCode
object.
When a project is compiled via ByteCode::compile
, a contiguous stream of bytecode instructions is generated.
This object maps each function (block) and script to its final bytecode location,
making it possible to execute specific blocks or scripts.
In typical usage, this info is not needed, and is only used internally for generating bytecode.
Its primary use would be in executing a single Process
rather than an entire Project
.
Fields§
§funcs: Vec<(&'a Function, usize)>
§entities: Vec<(&'a Entity, EntityScriptInfo<'a>)>
Auto Trait Implementations§
impl<'a> Freeze for ScriptInfo<'a>
impl<'a> RefUnwindSafe for ScriptInfo<'a>
impl<'a> !Send for ScriptInfo<'a>
impl<'a> !Sync for ScriptInfo<'a>
impl<'a> Unpin for ScriptInfo<'a>
impl<'a> UnwindSafe for ScriptInfo<'a>
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