pub struct VmScope<'a, SE: ScriptExpression> { /* private fields */ }
Implementations§
Source§impl<'a, SE: ScriptExpression> VmScope<'a, SE>
impl<'a, SE: ScriptExpression> VmScope<'a, SE>
pub fn new(handle: ScriptHandle<'a, SE>, symbol: VmScopeSymbol) -> Self
pub fn with_debugger(self, debugger: Option<VmDebuggerHandle<SE>>) -> Self
pub fn symbol(&self) -> VmScopeSymbol
pub fn position(&self) -> usize
pub fn has_completed(&self) -> bool
pub fn run(&mut self, context: &mut Context, registry: &Registry)
pub fn step(&mut self, context: &mut Context, registry: &Registry) -> bool
Trait Implementations§
Source§impl<SE: ScriptExpression + 'static> ScriptFunctionGenerator<SE> for VmScope<'static, SE>
impl<SE: ScriptExpression + 'static> ScriptFunctionGenerator<SE> for VmScope<'static, SE>
type Input = Option<Arc<RwLock<dyn VmDebugger<SE> + Sync + Send>>>
type Output = ID<()>
fn generate_function_body( script: ScriptHandle<'static, SE>, debugger: Self::Input, ) -> Option<(FunctionBody, Self::Output)>
fn generate_function( function: &ScriptFunction<'static, SE>, registry: &Registry, input: Self::Input, ) -> Option<(Function, Self::Output)>
Auto Trait Implementations§
impl<'a, SE> Freeze for VmScope<'a, SE>
impl<'a, SE> RefUnwindSafe for VmScope<'a, SE>where
SE: RefUnwindSafe,
impl<'a, SE> Send for VmScope<'a, SE>
impl<'a, SE> Sync for VmScope<'a, SE>
impl<'a, SE> Unpin for VmScope<'a, SE>
impl<'a, SE> UnwindSafe for VmScope<'a, SE>where
SE: RefUnwindSafe,
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