pub trait FunctionType {
    // Required method
    fn arguments() -> VmIndex;
}
Expand description

Trait which represents a function

Required Methods§

source

fn arguments() -> VmIndex

Returns how many arguments the function needs to be provided to call it

Implementations on Foreign Types§

source§

impl<'s, A, B, R> FunctionType for dyn Fn(A, B) -> R + 'swhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<F> FunctionType for Box<F>where F: FunctionType,

source§

impl<'vm, A, R> FunctionType for fn(_: A) -> Rwhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'vm, A, B, C, D, E, F, G, R> FunctionType for fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G) -> Rwhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'vm, A, B, R> FunctionType for fn(_: A, _: B) -> Rwhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'s, A, B, C, D, E, F, G, R> FunctionType for dyn Fn(A, B, C, D, E, F, G) -> R + 'swhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'vm, R: VmType> FunctionType for fn() -> IO<R>where IO<R>: VmType, <IO<R> as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'s, A, R> FunctionType for dyn Fn(A) -> R + 'swhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'s, A, B, C, D, R> FunctionType for dyn Fn(A, B, C, D) -> R + 'swhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'vm, A, B, C, D, R> FunctionType for fn(_: A, _: B, _: C, _: D) -> Rwhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'vm, A, B, C, R> FunctionType for fn(_: A, _: B, _: C) -> Rwhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'s, A, B, C, D, E, F, R> FunctionType for dyn Fn(A, B, C, D, E, F) -> R + 'swhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'s, A, B, C, D, E, R> FunctionType for dyn Fn(A, B, C, D, E) -> R + 'swhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'s, R: VmType> FunctionType for dyn Fn() -> IO<R> + 'swhere IO<R>: VmType, <IO<R> as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'vm, A, B, C, D, E, R> FunctionType for fn(_: A, _: B, _: C, _: D, _: E) -> Rwhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'vm, A, B, C, D, E, F, R> FunctionType for fn(_: A, _: B, _: C, _: D, _: E, _: F) -> Rwhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

source§

impl<'s, T: FunctionType> FunctionType for &'s T

source§

impl<'s, A, B, C, R> FunctionType for dyn Fn(A, B, C) -> R + 'swhere R: VmType, <R as VmType>::Type: Sized, R::Type: Sized,

Implementors§