[−][src]Trait heed::BytesDecode
Associated Types
Loading content...Required methods
Loading content...Implementations on Foreign Types
impl<'a, T> BytesDecode<'a> for OwnedSlice<T> where
T: Pod,
[src]
T: Pod,
type DItem = Vec<T, Global>
pub fn bytes_decode(
bytes: &[u8]
) -> Result<<OwnedSlice<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &[u8]
) -> Result<<OwnedSlice<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesDecode<'a> for UnalignedType<T> where
T: Pod,
[src]
T: Pod,
type DItem = &'a T
pub fn bytes_decode(
bytes: &'a [u8]
) -> Result<<UnalignedType<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &'a [u8]
) -> Result<<UnalignedType<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesDecode<'a> for CowType<T> where
T: Pod,
[src]
T: Pod,
type DItem = Cow<'a, T>
pub fn bytes_decode(
bytes: &'a [u8]
) -> Result<<CowType<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &'a [u8]
) -> Result<<CowType<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesDecode<'a> for SerdeJson<T> where
T: 'a + Deserialize<'a>,
[src]
T: 'a + Deserialize<'a>,
type DItem = T
pub fn bytes_decode(
bytes: &'a [u8]
) -> Result<<SerdeJson<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &'a [u8]
) -> Result<<SerdeJson<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesDecode<'a> for CowSlice<T> where
T: Pod,
[src]
T: Pod,
type DItem = Cow<'a, [T]>
pub fn bytes_decode(
bytes: &'a [u8]
) -> Result<<CowSlice<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &'a [u8]
) -> Result<<CowSlice<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'_> BytesDecode<'_> for DecodeIgnore
[src]
type DItem = ()
pub fn bytes_decode(
_bytes: &[u8]
) -> Result<<DecodeIgnore as BytesDecode<'_>>::DItem, Box<dyn Error + 'static, Global>>
[src]
_bytes: &[u8]
) -> Result<<DecodeIgnore as BytesDecode<'_>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a> BytesDecode<'a> for Str
[src]
type DItem = &'a str
pub fn bytes_decode(
bytes: &'a [u8]
) -> Result<<Str as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &'a [u8]
) -> Result<<Str as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'_> BytesDecode<'_> for Unit
[src]
type DItem = ()
pub fn bytes_decode(
bytes: &[u8]
) -> Result<<Unit as BytesDecode<'_>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &[u8]
) -> Result<<Unit as BytesDecode<'_>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesDecode<'a> for OwnedType<T> where
T: Pod,
[src]
T: Pod,
type DItem = T
pub fn bytes_decode(
bytes: &[u8]
) -> Result<<OwnedType<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &[u8]
) -> Result<<OwnedType<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesDecode<'a> for SerdeBincode<T> where
T: 'a + Deserialize<'a>,
[src]
T: 'a + Deserialize<'a>,
type DItem = T
pub fn bytes_decode(
bytes: &'a [u8]
) -> Result<<SerdeBincode<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &'a [u8]
) -> Result<<SerdeBincode<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesDecode<'a> for UnalignedSlice<T> where
T: Pod,
[src]
T: Pod,
type DItem = &'a [T]
pub fn bytes_decode(
bytes: &'a [u8]
) -> Result<<UnalignedSlice<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>
[src]
bytes: &'a [u8]
) -> Result<<UnalignedSlice<T> as BytesDecode<'a>>::DItem, Box<dyn Error + 'static, Global>>