irox_stats::points

Trait EncodablePoint2D

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

Required Methods§

Source

fn encode(&self) -> [u8; N]

Source

fn decode(value: [u8; N]) -> Self

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.

Implementors§