pub trait DataAnchorEncoding {
// Required methods
fn encode<T: Encodable>(
&self,
data: &T,
) -> DataAnchorEncodingResult<Vec<u8>>;
fn decode<T: Decodable>(&self, data: &[u8]) -> DataAnchorEncodingResult<T>;
}Required Methods§
fn encode<T: Encodable>(&self, data: &T) -> DataAnchorEncodingResult<Vec<u8>>
fn decode<T: Decodable>(&self, data: &[u8]) -> DataAnchorEncodingResult<T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.