FixedSize

Trait FixedSize 

Source
pub trait FixedSize: Value + PartialEq {
    const SIZE: u16;
    const INVALID: Self;
}
Expand description

This trait marks points with a fixed size. All non-string values are actually fixed size.

Required Associated Constants§

Source

const SIZE: u16

The size of this value

Source

const INVALID: Self

The value when the point is not supported

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 FixedSize for f32

Source§

const SIZE: u16 = 2u16

Source§

const INVALID: f32 = NaN_f32

Source§

impl FixedSize for f64

Source§

const SIZE: u16 = 4u16

Source§

const INVALID: f64 = NaN_f64

Source§

impl FixedSize for i16

Source§

const SIZE: u16 = 1u16

Source§

const INVALID: i16 = -32_768i16

Source§

impl FixedSize for i32

Source§

const SIZE: u16 = 2u16

Source§

const INVALID: i32 = -2_147_483_648i32

Source§

impl FixedSize for i64

Source§

const SIZE: u16 = 4u16

Source§

const INVALID: i64 = -9_223_372_036_854_775_808i64

Source§

impl FixedSize for u16

Source§

const SIZE: u16 = 1u16

Source§

const INVALID: u16 = 65_535u16

Source§

impl FixedSize for u32

Source§

const SIZE: u16 = 2u16

Source§

const INVALID: u32 = 4_294_967_295u32

Source§

impl FixedSize for u64

Source§

const SIZE: u16 = 4u16

Source§

const INVALID: u64 = 18_446_744_073_709_551_615u64

Source§

impl FixedSize for u128

Source§

const SIZE: u16 = 8u16

Source§

const INVALID: u128 = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

Source§

impl FixedSize for Ipv4Addr

Source§

impl FixedSize for Ipv6Addr

Implementors§