[−][src]Struct litto::lang::minilang::MiniLang
Extends TinyLang
with more stdlib functions and types.
Trait Implementations
impl Clone for MiniLang
[src]
impl Interpreter for MiniLang
[src]
type Value = <TinyLang as Interpreter>::Value
The value type the interpreter uses and returns. Read more
type Error = <TinyLang as Interpreter>::Error
The error type that the interpreter raises. Read more
type Env = <TinyLang as Interpreter>::Env
The environment type that is used to evaluate code. Read more
type Expr = <TinyLang as Interpreter>::Expr
The expression type. Read more
fn parse(code: &str) -> Result<Self::Expr, Self::Error>
[src]
fn global_env() -> Self::Env
[src]
fn evaluate(
env: &Self::Env,
expr: &Self::Expr
) -> Result<Self::Value, Self::Error>
[src]
env: &Self::Env,
expr: &Self::Expr
) -> Result<Self::Value, Self::Error>
fn interpret(code: &str) -> Result<Self::Value, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for MiniLang
impl Send for MiniLang
impl Sync for MiniLang
impl Unpin for MiniLang
impl UnwindSafe for MiniLang
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,