Trait Encode
pub trait Encode:
Sized
+ Send
+ Sync
+ Debug {
type Encoded: AsRef<[u8]> + Into<Vec<u8>> + Send + Sync + Ord + Debug;
// Required method
fn encode(self) -> Self::Encoded;
}
Expand description
Trait that will transform the data to be saved in the DB.
Required Associated Types§
Required Methods§
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.