pub trait MaxCode<T: Default + Debug + FromBytes + IntoBytes> {
// Required methods
fn as_code(self) -> T;
fn from_code(code: T) -> Self;
}
Expand description
The trait for MLD codes that can be further interpreted using different methods e.g. QQIC.
The type implementing this trait should be able
to convert itself from/to T
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.