[][src]Struct oxygengine_script_flow::vm::Vm

pub struct Vm { /* fields omitted */ }

Implementations

impl Vm[src]

pub fn new(ast: Program) -> Result<Self, VmError>[src]

pub fn version_range() -> (usize, usize)[src]

pub fn register_operation<T>(&mut self, name: &str, operator: T) where
    T: VmOperation + 'static, 
[src]

pub fn unregister_operator(&mut self, name: &str) -> bool[src]

pub fn global_variable_value(&self, name: &str) -> Result<Reference, VmError>[src]

pub fn set_global_variable_value(
    &mut self,
    name: &str,
    value: Reference
) -> Result<Reference, VmError>
[src]

pub fn run_event(
    &mut self,
    name: &str,
    inputs: Vec<Reference>
) -> Result<GUID, VmError>
[src]

pub fn destroy_event(&mut self, guid: GUID) -> Result<(), VmError>[src]

pub fn get_completed_event(&mut self, guid: GUID) -> Option<Vec<Reference>>[src]

pub fn get_completed_events(
    &mut self
) -> impl Iterator<Item = (GUID, Vec<Reference>)>
[src]

pub fn process_events(&mut self) -> Result<(), VmError>[src]

pub fn single_step_event(&mut self, guid: GUID) -> Result<(), VmError>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Vm

impl Send for Vm

impl Sync for Vm

impl Unpin for Vm

impl !UnwindSafe for Vm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,