[][src]Struct sana_core::ir::Vm

pub struct Vm<'code, 'input, T> {
    pub cursor: Cursor<'input>,
    // some fields omitted
}

Fields

cursor: Cursor<'input>

Implementations

impl<'code, 'input, T: Clone> Vm<'code, 'input, T>[src]

pub fn new(code: &'code [Op<T>], input: &'input str) -> Self[src]

pub fn run(&mut self) -> VmResult<T>[src]

Execute the loaded code

Trait Implementations

impl<'code, 'input, T: Clone> Clone for Vm<'code, 'input, T>[src]

impl<'code, 'input, T: Debug> Debug for Vm<'code, 'input, T>[src]

Auto Trait Implementations

impl<'code, 'input, T> RefUnwindSafe for Vm<'code, 'input, T> where
    T: RefUnwindSafe

impl<'code, 'input, T> Send for Vm<'code, 'input, T> where
    T: Sync

impl<'code, 'input, T> Sync for Vm<'code, 'input, T> where
    T: Sync

impl<'code, 'input, T> Unpin for Vm<'code, 'input, T>

impl<'code, 'input, T> UnwindSafe for Vm<'code, 'input, T> where
    T: RefUnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.