[][src]Trait heed::BytesDecode

pub trait BytesDecode<'a> {
    type DItem: 'a;
    pub fn bytes_decode(
        bytes: &'a [u8]
    ) -> Result<Self::DItem, Box<dyn Error + 'static, Global>>; }

Associated Types

type DItem: 'a[src]

Loading content...

Required methods

pub fn bytes_decode(
    bytes: &'a [u8]
) -> Result<Self::DItem, Box<dyn Error + 'static, Global>>
[src]

Loading content...

Implementations on Foreign Types

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

type DItem = ()

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

type DItem = ()

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

type DItem = Vec<T, Global>

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

type DItem = T

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

type DItem = Cow<'a, T>

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

type DItem = T

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

type DItem = &'a [T]

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

type DItem = &'a T

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

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

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

type DItem = T

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

type DItem = &'a str

Loading content...

Implementors

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

type DItem = Lazy<'a, C>

Loading content...