Enum runestick::UnitFn[][src]

pub enum UnitFn {
    Offset {
        offset: usize,
        call: Call,
        args: usize,
    },
    UnitStruct {
        hash: Hash,
    },
    TupleStruct {
        hash: Hash,
        args: usize,
    },
    UnitVariant {
        hash: Hash,
    },
    TupleVariant {
        hash: Hash,
        args: usize,
    },
}

The kind and necessary information on registered functions.

Variants

Offset

Offset to call a “real” function.

Fields of Offset

offset: usize

Offset of the registered function.

call: Call

The way the function is called.

args: usize

The number of arguments the function takes.

UnitStruct

An empty constructor.

Fields of UnitStruct

hash: Hash

The type hash of the empty.

TupleStruct

A tuple constructor.

Fields of TupleStruct

hash: Hash

The type hash of the tuple.

args: usize

The number of arguments the tuple takes.

UnitVariant

A empty variant constructor.

Fields of UnitVariant

hash: Hash

The type hash of the empty variant.

TupleVariant

A tuple variant constructor.

Fields of TupleVariant

hash: Hash

The type hash of the variant.

args: usize

The number of arguments the tuple takes.

Trait Implementations

impl Clone for UnitFn[src]

impl Copy for UnitFn[src]

impl Debug for UnitFn[src]

impl<'de> Deserialize<'de> for UnitFn[src]

impl Display for UnitFn[src]

impl Serialize for UnitFn[src]

Auto Trait Implementations

impl RefUnwindSafe for UnitFn

impl Send for UnitFn

impl Sync for UnitFn

impl Unpin for UnitFn

impl UnwindSafe for UnitFn

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.