Trait DeserMethod

Source
pub trait DeserMethod: DynMethod + Deserialize {
    // Required method
    fn upcast_box(self: Box<Self>) -> Box<dyn DynMethod>;
}
Expand description

A DynMethod that can be deserialized.

We use typetag here so that we define Methods in other crates.

Use derive_deftly(DynMethod) for a template to declare one of these.

Required Methods§

Source

fn upcast_box(self: Box<Self>) -> Box<dyn DynMethod>

Up-cast to a Box<dyn DynMethod>.

Implementors§