ExternFn

Trait ExternFn 

Source
pub trait ExternFn {
    // Required method
    fn call<'host>(
        &'host self,
        argument: Value<'host>,
    ) -> Result<Value<'host>, Error>;

    // Provided methods
    fn to_static(&self) -> Option<StaticFunction> { ... }
    fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error> { ... }
}

Required Methods§

Source

fn call<'host>( &'host self, argument: Value<'host>, ) -> Result<Value<'host>, Error>

Provided Methods§

Source

fn to_static(&self) -> Option<StaticFunction>

Source

fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Implementors§