Trait reindeer::AsBytes

source ·
pub trait AsBytes {
    // Required method
    fn as_bytes(&self) -> Vec<u8>;
}
Expand description

Trait allowing values to be converted to Vec<u8>. This trait is not meant to be implemented, but you can if you need to.

Required Methods§

source

fn as_bytes(&self) -> Vec<u8>

Returns a new binary representation of self as a Vec<u8>

Implementations on Foreign Types§

source§

impl<K1, K2> AsBytes for (K1, K2)where K1: AsBytes, K2: AsBytes,

source§

fn as_bytes(&self) -> Vec<u8>

source§

impl AsBytes for u32

source§

fn as_bytes(&self) -> Vec<u8>

source§

impl AsBytes for String

source§

fn as_bytes(&self) -> Vec<u8>

source§

impl AsBytes for Vec<u8>

source§

fn as_bytes(&self) -> Vec<u8>

source§

impl AsBytes for i64

source§

fn as_bytes(&self) -> Vec<u8>

source§

impl AsBytes for u64

source§

fn as_bytes(&self) -> Vec<u8>

source§

impl AsBytes for &[u8]

source§

fn as_bytes(&self) -> Vec<u8>

source§

impl AsBytes for i32

source§

fn as_bytes(&self) -> Vec<u8>

Implementors§