[][src]Enum dyon::FnExt

pub enum FnExt {
    Void(fn(_: &mut Runtime) -> Result<(), String>),
    Return(fn(_: &mut Runtime) -> Result<Variable, String>),
    BinOp(fn(_: &Variable, _: &Variable) -> Result<Variable, String>),
    UnOp(fn(_: &Variable) -> Result<Variable, String>),
}

Refers to an external function.

Variants

Void(fn(_: &mut Runtime) -> Result<(), String>)

External function with no return value.

Return(fn(_: &mut Runtime) -> Result<Variable, String>)

External function with return value.

BinOp(fn(_: &Variable, _: &Variable) -> Result<Variable, String>)

External binary operator.

UnOp(fn(_: &Variable) -> Result<Variable, String>)

External unary operator.

Trait Implementations

impl Clone for FnExt[src]

impl Copy for FnExt[src]

impl Debug for FnExt[src]

impl From<fn(&Variable, &Variable) -> Result<Variable, String>> for FnExt[src]

impl From<fn(&Variable) -> Result<Variable, String>> for FnExt[src]

impl From<fn(&mut Runtime) -> Result<(), String>> for FnExt[src]

impl From<fn(&mut Runtime) -> Result<Variable, String>> for FnExt[src]

Auto Trait Implementations

impl RefUnwindSafe for FnExt

impl Send for FnExt

impl Sync for FnExt

impl Unpin for FnExt

impl UnwindSafe for FnExt

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, 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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err