Trait SerdeBincodeCompat
pub trait SerdeBincodeCompat: Sized + 'static {
type BincodeRepr<'a>: Debug + Serialize + DeserializeOwned + From<&'a Self> + Into<Self>;
}
Available on crate feature
serde-bincode-compat
only.Expand description
Trait for types that can be serialized and deserialized using bincode.
Required Associated Types§
type BincodeRepr<'a>: Debug + Serialize + DeserializeOwned + From<&'a Self> + Into<Self>
type BincodeRepr<'a>: Debug + Serialize + DeserializeOwned + From<&'a Self> + Into<Self>
Serde representation of the type for bincode serialization.
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.