Trait FixedSize

Source
pub trait FixedSize: BinarySerializable {
    const SIZE_IN_BYTES: usize;
}
Expand description

FixedSize marks a BinarySerializable as always serializing to the same size.

Required Associated Constants§

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 bool

Source§

impl FixedSize for f32

Source§

impl FixedSize for f64

Source§

impl FixedSize for i64

Source§

impl FixedSize for u8

Source§

impl FixedSize for u16

Source§

impl FixedSize for u32

Source§

impl FixedSize for u64

Source§

impl FixedSize for u128

Source§

const SIZE_IN_BYTES: usize = 16usize

Source§

impl FixedSize for ()

Source§

impl<Left: BinarySerializable + FixedSize, Right: BinarySerializable + FixedSize> FixedSize for (Left, Right)

Implementors§