pub trait EncodablePoint2D<const N: usize>: Point2D {
// Required methods
fn encode(&self) -> [u8; N];
fn decode(value: [u8; N]) -> Self;
}
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.