Trait SizedSerialize

Source
pub trait SizedSerialize {
    const SERIALIZED_LEN: usize;
}
Expand description

Types with a constant encoded length.

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 SizedSerialize for u8

Source§

impl SizedSerialize for u16

Source§

impl SizedSerialize for u32

Source§

impl SizedSerialize for u64

Source§

impl SizedSerialize for u128

Source§

const SERIALIZED_LEN: usize = 16usize

Implementors§