[][src]Struct kes::context::Context

pub struct Context<'b: 'c, 'c, P: Printer> { /* fields omitted */ }

Methods

impl<'b: 'c, 'c, P: Printer> Context<'b, 'c, P>[src]

pub fn new(
    bump: &'c Bump,
    builtin: &'c AHashMap<&'b str, fn(_: &mut Context<'b, 'c, P>)>,
    instructions: &'c [Instruction<'b>],
    printer: &'c mut P,
    print_buffer: &'c mut String<'b>
) -> Self
[src]

pub fn push(&mut self, v: impl Into<Value<'c>>)[src]

pub fn pop(&mut self) -> Option<Value<'c>>[src]

pub fn printer(&mut self) -> &mut P[src]

pub fn peek(&self) -> Option<&Value<'c>>[src]

pub fn pop_u32(&mut self) -> u32[src]

pub fn pop_bool(&mut self) -> bool[src]

pub fn pop_str(&mut self) -> &'c str[src]

pub fn run_operator(&mut self, op: Operator)[src]

pub fn flush_print(&mut self)[src]

pub fn bump(&self) -> &'c Bump[src]

pub fn run_instruction(&mut self, inst: Instruction<'c>) -> bool[src]

pub fn run_builtin(&mut self, name: &str)[src]

pub fn run(self)[src]

Auto Trait Implementations

impl<'b, 'c, P> !RefUnwindSafe for Context<'b, 'c, P>

impl<'b, 'c, P> !Send for Context<'b, 'c, P>

impl<'b, 'c, P> !Sync for Context<'b, 'c, P>

impl<'b, 'c, P> Unpin for Context<'b, 'c, P> where
    'b: 'c, 

impl<'b, 'c, P> !UnwindSafe for Context<'b, 'c, P>

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.