pub trait Evolving<'de>: Sized {
// Required methods
fn encode_evolving(
&self,
output: &mut Vec<u8>,
encoding: Encoding,
limits: Limits,
) -> Result<(), Error>;
fn decode_evolving(
input: &'de [u8],
encoding: Encoding,
limits: Limits,
) -> Result<Self, Error>;
}Expand description
A value with typed encoding and projection through the evolutionary codec.
Decoded values may borrow from the frame or payload for 'de.
Both directions must use a sparse message root.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".