pub trait SerializeDeserializeWithContext {
// Provided methods
fn deserialize_with_context(bytes: &[u8]) -> Result<Self>
where Self: for<'de> Deserialize<'de> + Decode<()> { ... }
fn serialize_with_context(input: &Self) -> Result<Vec<u8>>
where Self: Serialize + Debug + Encode { ... }
}
Provided Methods§
fn deserialize_with_context(bytes: &[u8]) -> Result<Self>
fn serialize_with_context(input: &Self) -> Result<Vec<u8>>
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.