[][src]Trait heed::BytesDecode

pub trait BytesDecode<'a> {
    type DItem: 'a;
    pub fn bytes_decode(bytes: &'a [u8]) -> Option<Self::DItem>;
}

Associated Types

type DItem: 'a[src]

Loading content...

Required methods

pub fn bytes_decode(bytes: &'a [u8]) -> Option<Self::DItem>[src]

Loading content...

Implementations on Foreign Types

impl<'a, T> BytesDecode<'a> for UnalignedSlice<T> where
    T: 'a + FromBytes + Unaligned
[src]

type DItem = &'a [T]

impl<'a, T> BytesDecode<'a> for OwnedSlice<T> where
    T: 'a + FromBytes + Copy
[src]

type DItem = Vec<T, Global>

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

type DItem = ()

impl<'a, T> BytesDecode<'a> for SerdeBincode<T> where
    T: 'a + Deserialize<'a>, 
[src]

type DItem = T

impl<'a, T> BytesDecode<'a> for CowSlice<T> where
    T: 'a + FromBytes + Copy
[src]

type DItem = Cow<'a, [T]>

impl<'a, T> BytesDecode<'a> for OwnedType<T> where
    T: 'a + FromBytes + Copy
[src]

type DItem = T

impl<'a, T> BytesDecode<'a> for SerdeJson<T> where
    T: 'a + Deserialize<'a>, 
[src]

type DItem = T

impl<'a, T> BytesDecode<'a> for CowType<T> where
    T: 'a + FromBytes + Copy
[src]

type DItem = Cow<'a, T>

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

type DItem = &'a str

impl<'a, T> BytesDecode<'a> for UnalignedType<T> where
    T: 'a + FromBytes + Unaligned
[src]

type DItem = &'a T

impl<'_> BytesDecode<'_> for DecodeIgnore[src]

type DItem = ()

Loading content...

Implementors

impl<'a, C: 'static> BytesDecode<'a> for LazyDecode<C>[src]

type DItem = Lazy<'a, C>

Loading content...