BytesAppendableValue

Trait BytesAppendableValue 

Source
pub trait BytesAppendableValue {
    // Required methods
    fn byte_len(&self) -> usize;
    fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes);
}

Required Methods§

Source

fn byte_len(&self) -> usize

Source

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

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 BytesAppendableValue for &str

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl BytesAppendableValue for &String

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl BytesAppendableValue for &Vec<u8>

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl BytesAppendableValue for &[u8]

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl BytesAppendableValue for char

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl BytesAppendableValue for u8

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl BytesAppendableValue for [u8]

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl<'a> BytesAppendableValue for &'a Cow<'a, str>

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

impl<T: BytesAppendableValue> BytesAppendableValue for Option<T>

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

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

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Source§

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

Source§

fn byte_len(&self) -> usize

Source§

fn push_to<TBytes: BytesTypeMut>(&self, bytes: &mut TBytes)

Implementors§