[−][src]Struct kes::context::Context
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]
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
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,
'b: 'c,
impl<'b, 'c, P> !UnwindSafe for Context<'b, 'c, P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,