[][src]Struct ogma::vm::Script

pub struct Script<'a> { /* fields omitted */ }

A list of Functions

Implementations

impl<'a> Script<'a>[src]

pub fn new() -> Script<'a>[src]

Create a new empty Script

pub fn instance(&self) -> Instance<'_, '_>[src]

Create an instance of a Script

pub fn push(&mut self, func: impl Callable + 'static)[src]

Add a new function to the end of the Script

Trait Implementations

impl<'a> Default for Script<'a>[src]

impl<'a> From<Vec<Box<dyn Callable + 'a>>> for Script<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Script<'a>

impl<'a> !Send for Script<'a>

impl<'a> !Sync for Script<'a>

impl<'a> Unpin for Script<'a>

impl<'a> !UnwindSafe for Script<'a>

Blanket Implementations

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

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

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

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

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

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.