ExternFnOwned

Trait ExternFnOwned 

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

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

Required Methods§

Source

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

Note that self’s reference count will always be greater than one when a function is called from espy, so Rc::unwrap_or_clone, Rc::get_mut, etc. are useless.

Provided Methods§

Source

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

Implementors§