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 Method
s in other crates.
Use derive_deftly(DynMethod)
for a template to declare one of these.
Required Methods§
Sourcefn upcast_box(self: Box<Self>) -> Box<dyn DynMethod>
fn upcast_box(self: Box<Self>) -> Box<dyn DynMethod>
Up-cast to a Box<dyn DynMethod>
.