pub trait CustomTypeEncoder: Send + Sync {
// Required method
fn encode_value(&self, value: &Value) -> Result<Vec<u8>>;
}Expand description
Implement this trait to define custom encoding for a type in a scale-info type
registry.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".