Trait bittree::getbytes::GetBytes[][src]

pub trait GetBytes: Sized + Clone {
    fn get_bytes(&self) -> &[u8] { ... }
}

This trait is used for casting types to bytes safely. Creating a BitTree requires that the key and value types implement this trait to make sure that the bits for a type can be accurately retrieved.

Provided methods

fn get_bytes(&self) -> &[u8][src]

Loading content...

Implementations on Foreign Types

impl<T: GetBytes> GetBytes for Option<T>[src]

impl<T: GetBytes> GetBytes for Vec<T>[src]

impl GetBytes for String[src]

Loading content...

Implementors

impl GetBytes for bool[src]

impl GetBytes for char[src]

impl GetBytes for i8[src]

impl GetBytes for i16[src]

impl GetBytes for i32[src]

impl GetBytes for i64[src]

impl GetBytes for isize[src]

impl GetBytes for u8[src]

impl GetBytes for u16[src]

impl GetBytes for u32[src]

impl GetBytes for u64[src]

impl GetBytes for usize[src]

impl<'a> GetBytes for &'a str[src]

impl<'a, T: GetBytes> GetBytes for &'a [T][src]

impl<K: GetBytes, V: GetBytes> GetBytes for BitTree<K, V>[src]

impl<T: GetBytes> GetBytes for &T[src]

Loading content...