ByteLen

Trait ByteLen 

Source
pub trait ByteLen {
    // Required method
    fn byte_len(&self) -> NumBytes;
}
Expand description

Type which has a well-defined length in bytes.

Required Methods§

Source

fn byte_len(&self) -> NumBytes

Length in bytes of the value.

Implementations on Foreign Types§

Source§

impl ByteLen for str

Source§

impl ByteLen for [u8]

Implementors§