Trait PointType

Source
pub trait PointType<T> {
    // Required methods
    fn decode(data: Vec<u16>) -> T;
    fn encode(data: T) -> Vec<u16>;
}

Required Methods§

Source

fn decode(data: Vec<u16>) -> T

Source

fn encode(data: T) -> Vec<u16>

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.

Implementations on Foreign Types§

Source§

impl PointType<i16> for i16

Source§

fn decode(data: Vec<u16>) -> i16

Source§

fn encode(data: i16) -> Vec<u16>

Source§

impl PointType<i32> for i32

Source§

fn decode(data: Vec<u16>) -> i32

Source§

fn encode(data: i32) -> Vec<u16>

Source§

impl PointType<u16> for u16

Source§

fn decode(data: Vec<u16>) -> u16

Source§

fn encode(data: u16) -> Vec<u16>

Source§

impl PointType<u32> for u32

Source§

fn decode(data: Vec<u16>) -> u32

Source§

fn encode(data: u32) -> Vec<u16>

Source§

impl PointType<String> for String

Implementors§