pub trait MaxLength {
    const MAX_LENGTH: StrLength;
}
Expand description

Type that has a known upper boundary for the formatted length.

Required Associated Constants§

source

const MAX_LENGTH: StrLength

Upper boundary for the formatted length in bytes and chars.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MaxLength for char

source§

impl MaxLength for i8

source§

impl MaxLength for i16

source§

impl MaxLength for i32

source§

impl MaxLength for i64

source§

impl MaxLength for i128

source§

impl MaxLength for isize

source§

impl MaxLength for u8

source§

impl MaxLength for u16

source§

impl MaxLength for u32

source§

impl MaxLength for u64

source§

impl MaxLength for u128

source§

impl MaxLength for usize

Implementors§

source§

impl<const CAP: usize> MaxLength for &CompileArgs<CAP>