LenType

Trait LenType 

Source
pub trait LenType:
    Display
    + TryFrom<usize>
    + TryInto<usize>
    + Encoder
    + for<'de> Decoder<'de> {
    // Required methods
    fn max() -> Self;
    fn bits() -> u32;
    fn ty_str() -> &'static str;
}
Expand description

Supported length type for Record

Required Methods§

Source

fn max() -> Self

Source

fn bits() -> u32

Source

fn ty_str() -> &'static str

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

Source§

fn max() -> Self

Source§

fn bits() -> u32

Source§

fn ty_str() -> &'static str

Source§

impl LenType for u16

Source§

fn max() -> Self

Source§

fn bits() -> u32

Source§

fn ty_str() -> &'static str

Source§

impl LenType for u32

Source§

fn max() -> Self

Source§

fn bits() -> u32

Source§

fn ty_str() -> &'static str

Source§

impl LenType for u64

Source§

fn max() -> Self

Source§

fn bits() -> u32

Source§

fn ty_str() -> &'static str

Source§

impl LenType for usize

Source§

fn max() -> Self

Source§

fn bits() -> u32

Source§

fn ty_str() -> &'static str

Implementors§