HasBytes

Trait HasBytes 

Source
pub trait HasBytes {
    // Required method
    fn num_bytes(&self) -> usize;
}

Required Methods§

Source

fn num_bytes(&self) -> usize

Implementations on Foreign Types§

Source§

impl HasBytes for Box<str>

Source§

impl HasBytes for Box<[u8]>

Source§

impl HasBytes for Rc<str>

Source§

impl HasBytes for Rc<[u8]>

Source§

impl HasBytes for String

Source§

impl HasBytes for Arc<str>

Source§

impl HasBytes for Arc<[u8]>

Source§

impl HasBytes for Vec<u8>

Source§

impl<'a> HasBytes for &'a str

Source§

impl<'a> HasBytes for &'a String

Source§

impl<'a> HasBytes for &'a [u8]

Source§

impl<'a> HasBytes for Cow<'a, str>

Source§

impl<const N: usize> HasBytes for [u8; N]

Implementors§