pub trait Fixed: Default + Sized + Clone + Copy {
    type Wire: Sized;

    // Required methods
    fn from_wire(v: Self::Wire) -> Self;
    fn to_wire(self) -> Self::Wire;
}

Required Associated Types§

Required Methods§

source

fn from_wire(v: Self::Wire) -> Self

source

fn to_wire(self) -> Self::Wire

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Fixed for f32

§

type Wire = u32

source§

fn from_wire(v: Self::Wire) -> Self

source§

fn to_wire(self) -> Self::Wire

source§

impl Fixed for f64

§

type Wire = u64

source§

fn from_wire(v: Self::Wire) -> Self

source§

fn to_wire(self) -> Self::Wire

source§

impl Fixed for i32

§

type Wire = u32

source§

fn from_wire(v: Self::Wire) -> Self

source§

fn to_wire(self) -> Self::Wire

source§

impl Fixed for i64

§

type Wire = u64

source§

fn from_wire(v: Self::Wire) -> Self

source§

fn to_wire(self) -> Self::Wire

source§

impl Fixed for u32

§

type Wire = u32

source§

fn from_wire(v: Self::Wire) -> Self

source§

fn to_wire(self) -> Self::Wire

source§

impl Fixed for u64

§

type Wire = u64

source§

fn from_wire(v: Self::Wire) -> Self

source§

fn to_wire(self) -> Self::Wire

Implementors§