compile_state::state

Struct Specials

Source
pub struct Specials {
Show 65 fields pub def: Interned, pub set: Interned, pub do_: Interned, pub fn_: Interned, pub mac_: Interned, pub if_: Interned, pub add: Interned, pub sub: Interned, pub mul: Interned, pub div: Interned, pub inc: Interned, pub dec: Interned, pub list: Interned, pub list_append: Interned, pub cons: Interned, pub car: Interned, pub cdr: Interned, pub xar: Interned, pub xdr: Interned, pub make_hash: Interned, pub vec: Interned, pub make_vec: Interned, pub vec_pop: Interned, pub vec_push: Interned, pub quote: Interned, pub backquote: Interned, pub recur: Interned, pub this_fn: Interned, pub numeq: Interned, pub numlt: Interned, pub numlte: Interned, pub numgt: Interned, pub numgte: Interned, pub eq: Interned, pub equal: Interned, pub type_: Interned, pub not: Interned, pub and: Interned, pub or: Interned, pub err: Interned, pub len: Interned, pub clear: Interned, pub str_: Interned, pub let_: Interned, pub let_while: Interned, pub call_cc: Interned, pub defer: Interned, pub on_error: Interned, pub while_: Interned, pub doc_string: Interned, pub get: Interned, pub mk_err: Interned, pub is_err: Interned, pub is_ok: Interned, pub ret: Interned, pub ns: Interned, pub with_ns: Interned, pub import: Interned, pub load: Interned, pub comp_time: Interned, pub rest: Interned, pub optional: Interned, pub scratch: Interned, pub colon: Interned, pub root: Interned,
}

Fields§

§def: Interned§set: Interned§do_: Interned§fn_: Interned§mac_: Interned§if_: Interned§add: Interned§sub: Interned§mul: Interned§div: Interned§inc: Interned§dec: Interned§list: Interned§list_append: Interned§cons: Interned§car: Interned§cdr: Interned§xar: Interned§xdr: Interned§make_hash: Interned§vec: Interned§make_vec: Interned§vec_pop: Interned§vec_push: Interned§quote: Interned§backquote: Interned§recur: Interned§this_fn: Interned§numeq: Interned§numlt: Interned§numlte: Interned§numgt: Interned§numgte: Interned§eq: Interned§equal: Interned§type_: Interned§not: Interned§and: Interned§or: Interned§err: Interned§len: Interned§clear: Interned§str_: Interned§let_: Interned§let_while: Interned§call_cc: Interned§defer: Interned§on_error: Interned§while_: Interned§doc_string: Interned§get: Interned§mk_err: Interned§is_err: Interned§is_ok: Interned§ret: Interned§ns: Interned§with_ns: Interned§import: Interned§load: Interned§comp_time: Interned§rest: Interned§optional: Interned§scratch: Interned§colon: Interned§root: Interned

Implementations§

Source§

impl Specials

Source

pub fn new(vm: &mut SloshVm) -> Self

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.