Struct Runtime

Source
pub struct Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: Stack<Item = i32>, Sexec: ExecutionStack<BuiltinTok, SeqTok>, SeqTok: Clone, BuiltinTok: Clone, O: Write,
{ pub data_stk: Sdata, pub ret_stk: Sdata, pub flow_stk: Sexec, pub _pd_ty_t_f: PhantomData<(BuiltinTok, SeqTok)>, /* private fields */ }

Fields§

§data_stk: Sdata§ret_stk: Sdata§flow_stk: Sexec§_pd_ty_t_f: PhantomData<(BuiltinTok, SeqTok)>

Implementations§

Source§

impl<Sdata, Sexec, BuiltinTok, SeqTok, O> Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: Stack<Item = i32>, Sexec: ExecutionStack<BuiltinTok, SeqTok>, SeqTok: Clone, BuiltinTok: Clone, O: Write,

Source

pub fn step(&mut self) -> Result<StepResult<BuiltinTok, SeqTok>, Error>

Source

pub fn provide_seq_tok( &mut self, seq: Option<RuntimeWord<BuiltinTok, SeqTok>>, ) -> Result<(), Error>

Source

pub fn push_exec(&mut self, word: RuntimeWord<BuiltinTok, SeqTok>)

Source§

impl<Sdata, Sexec, BuiltinTok, SeqTok, O> Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: Stack<Item = i32>, Sexec: ExecutionStack<BuiltinTok, SeqTok>, SeqTok: Clone, BuiltinTok: Clone, O: Write + Default,

Source

pub fn exchange_output(&mut self) -> O

Auto Trait Implementations§

§

impl<BuiltinTok, SeqTok, Sdata, Sexec, O> Freeze for Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: Freeze, Sexec: Freeze, O: Freeze,

§

impl<BuiltinTok, SeqTok, Sdata, Sexec, O> RefUnwindSafe for Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: RefUnwindSafe, Sexec: RefUnwindSafe, O: RefUnwindSafe, BuiltinTok: RefUnwindSafe, SeqTok: RefUnwindSafe,

§

impl<BuiltinTok, SeqTok, Sdata, Sexec, O> Send for Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: Send, Sexec: Send, O: Send, BuiltinTok: Send, SeqTok: Send,

§

impl<BuiltinTok, SeqTok, Sdata, Sexec, O> Sync for Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: Sync, Sexec: Sync, O: Sync, BuiltinTok: Sync, SeqTok: Sync,

§

impl<BuiltinTok, SeqTok, Sdata, Sexec, O> Unpin for Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: Unpin, Sexec: Unpin, O: Unpin, BuiltinTok: Unpin, SeqTok: Unpin,

§

impl<BuiltinTok, SeqTok, Sdata, Sexec, O> UnwindSafe for Runtime<BuiltinTok, SeqTok, Sdata, Sexec, O>
where Sdata: UnwindSafe, Sexec: UnwindSafe, O: UnwindSafe, BuiltinTok: UnwindSafe, SeqTok: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.