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§
Sourcefn call<'host>(
self: Rc<Self>,
argument: Value<'host>,
) -> Result<Value<'host>, Error>
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.