[][src]Trait heed::BytesEncode

pub trait BytesEncode<'a> {
    type EItem: 'a + ?Sized;
    pub fn bytes_encode(
        item: &'a Self::EItem
    ) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>; }

Associated Types

type EItem: 'a + ?Sized[src]

Loading content...

Required methods

pub fn bytes_encode(
    item: &'a Self::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]

Loading content...

Implementations on Foreign Types

impl<'_> BytesEncode<'_> for Unit[src]

type EItem = ()

impl<'a, T> BytesEncode<'a> for CowSlice<T> where
    T: Pod
[src]

type EItem = [T]

impl<'a, T> BytesEncode<'a> for UnalignedSlice<T> where
    T: Pod
[src]

type EItem = [T]

impl<'a, T> BytesEncode<'a> for OwnedType<T> where
    T: Pod
[src]

type EItem = T

impl<'a> BytesEncode<'a> for Str[src]

type EItem = str

impl<'a, T> BytesEncode<'a> for OwnedSlice<T> where
    T: Pod
[src]

type EItem = [T]

impl<'a, T> BytesEncode<'a> for CowType<T> where
    T: Pod
[src]

type EItem = T

impl<'a, T> BytesEncode<'a> for SerdeJson<T> where
    T: 'a + Serialize
[src]

type EItem = T

impl<'a, T> BytesEncode<'a> for UnalignedType<T> where
    T: Pod
[src]

type EItem = T

impl<'a, T> BytesEncode<'a> for SerdeBincode<T> where
    T: 'a + Serialize
[src]

type EItem = T

Loading content...

Implementors

Loading content...