Struct Builder

Source
pub struct Builder { /* private fields */ }

Implementations§

Source§

impl Builder

Source

pub fn new() -> Self

Source

pub fn debug_chunks(&self)

Source

pub fn push(&mut self, value: Value)

Source

pub fn push_collect(&mut self, values: &mut Vec<Value>)

Source

pub fn start_fn(&mut self, id: &str) -> Result<(), u64>

Source

pub fn ret_fn(&mut self)

Source

pub fn halt(&mut self)

Source

pub fn set_type(&mut self, ty_flag: TypeFlag)

Source

pub fn get_type(&mut self)

Source

pub fn add(&mut self)

Source

pub fn sub(&mut self)

Source

pub fn div(&mut self)

Source

pub fn rem(&mut self)

Source

pub fn neg(&mut self)

Source

pub fn incr(&mut self)

Source

pub fn decr(&mut self)

Source

pub fn eq(&mut self)

Source

pub fn neq(&mut self)

Source

pub fn lt(&mut self)

Source

pub fn gt(&mut self)

Source

pub fn lte(&mut self)

Source

pub fn gte(&mut self)

Source

pub fn and(&mut self)

Source

pub fn or(&mut self)

Source

pub fn xor(&mut self)

Source

pub fn shl(&mut self)

Source

pub fn shr(&mut self)

Source

pub fn not(&mut self)

Source

pub fn jmp(&mut self, addr: Option<u64>)

Source

pub fn jmp_if(&mut self)

Source

pub fn jmp_if_not(&mut self)

Source

pub fn call(&mut self, ident: &str) -> Result<(), String>

Source

pub fn ret(&mut self)

Source

pub fn dup(&mut self)

Source

pub fn drop(&mut self)

Source

pub fn swap(&mut self)

Source

pub fn load(&mut self, ptr: Option<u64>)

Source

pub fn store(&mut self)

Source

pub fn alloc(&mut self)

Source

pub fn free(&mut self)

Source

pub fn heap_size(&mut self)

Source

pub fn stack_size(&mut self)

Source

pub fn load_code(&mut self)

Source

pub fn save_code(&mut self)

Source

pub fn write(&mut self, out: Option<&str>)

Source

pub fn read(&mut self)

Source

pub fn print(&mut self, out: Option<&str>)

Source

pub fn build_code(&mut self) -> Vec<u8>

Source

pub fn build_machine(&mut self) -> Machine

Auto Trait Implementations§

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.