[][src]Enum spaik::compile::Builtin

#[repr(i32)]pub enum Builtin {
    Unknown,
    If,
    Compile,
    Let,
    And,
    Or,
    Set,
    Quote,
    Quasi,
    Unquote,
    USplice,
    Loop,
    Cdr,
    Car,
    Cons,
    List,
    Append,
    Vector,
    Get,
    Push,
    Pop,
    Len,
    Lambda,
    Call,
    Apply,
    True,
    False,
    Add,
    Sub,
    Div,
    Mul,
    Gt,
    Lt,
    Lte,
    Gte,
    Eq,
    Not,
    DefineStatic,
    Define,
    Progn,
    ArgOptional,
    ArgBody,
    ArgRest,
    EvalWhen,
    KwCompile,
    KwLoad,
    KwExec,
    KwLocal,
    KwEnv,
    KwPass,
    KwFail,
    KwOk,
    LispOk,
    Fail,
    Symbol,
    Integer,
    String,
    Closure,
    Stream,
    Deref,
    Ref,
    New,
    Next,
    Break,
    Number,
    UnsignedInteger,
    Float,
    Bool,
    HaltFunc,
    IP,
    Frame,
    DebugVarIdx,
    LambdaObject,
    Subr,
    Nil,
    Epsilon,
}

Variants

Unknown
If
Compile
Let
And
Or
Set
Quote
Quasi
Unquote
USplice
Loop
Cdr
Car
Cons
List
Append
Vector
Get
Push
Pop
Len
Lambda
Call
Apply
True
False
Add
Sub
Div
Mul
Gt
Lt
Lte
Gte
Eq
Not
DefineStatic
Define
Progn
ArgOptional
ArgBody
ArgRest
EvalWhen
KwCompile
KwLoad
KwExec
KwLocal
KwEnv
KwPass
KwFail
KwOk
LispOk
Fail
Symbol
Integer
String
Closure
Stream
Deref
Ref
New
Next
Break
Number
UnsignedInteger
Float
Bool
HaltFunc
IP
Frame
DebugVarIdx
LambdaObject
Subr
Nil
Epsilon

Implementations

impl Builtin[src]

pub fn from_sym(n: SymID) -> Option<Builtin>[src]

pub const fn num_builtins() -> usize[src]

pub fn get_str(&self) -> &'static str[src]

pub fn sym(&self) -> SymID[src]

pub fn to_string(&self) -> String[src]

Trait Implementations

impl Clone for Builtin[src]

impl Copy for Builtin[src]

impl Debug for Builtin[src]

impl Display for Builtin[src]

impl Eq for Builtin[src]

impl From<Builtin> for Value[src]

impl PartialEq<Builtin> for Builtin[src]

impl StructuralEq for Builtin[src]

impl StructuralPartialEq for Builtin[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.