Skip to main content

AddableDyn

Trait AddableDyn 

Source
pub trait AddableDyn {
    // Required method
    fn serialize_dyn(&self) -> Result<(Vec<u8>, Hash)>;
}
Expand description

Object-safe serialization adapter so add_batch can take mixed grain types.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<G: Grain + 'static> AddableDyn for G