[][src]Enum hatter::Fn

pub enum Fn {
    Fn(Vec<Symbol>, Vec<Stmt>, Scope),
    Native(Rc<Native>),
    Special(Rc<Special>),
}

Three types of functions in Hatter: Fn: Function defined in Hatter. Native: Function defined in Rust. Special: Function defined in Rust whose arguments aren't evaluated, like a macro.

Variants

Fn(Vec<Symbol>, Vec<Stmt>, Scope)
Native(Rc<Native>)
Special(Rc<Special>)

Trait Implementations

impl Clone for Fn[src]

Auto Trait Implementations

impl !RefUnwindSafe for Fn

impl !Send for Fn

impl !Sync for Fn

impl Unpin for Fn

impl !UnwindSafe for Fn

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.