[−][src]Trait heed::BytesEncode
Associated Types
Loading content...Required methods
pub fn bytes_encode(
item: &'a Self::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a Self::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
Implementations on Foreign Types
impl<'_> BytesEncode<'_> for Unit
[src]
type EItem = ()
pub fn bytes_encode(
_item: &<Unit as BytesEncode<'_>>::EItem
) -> Result<Cow<'_, [u8]>, Box<dyn Error + 'static, Global>>
[src]
_item: &<Unit as BytesEncode<'_>>::EItem
) -> Result<Cow<'_, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for CowSlice<T> where
T: Pod,
[src]
T: Pod,
type EItem = [T]
pub fn bytes_encode(
item: &'a <CowSlice<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <CowSlice<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for UnalignedSlice<T> where
T: Pod,
[src]
T: Pod,
type EItem = [T]
pub fn bytes_encode(
item: &'a <UnalignedSlice<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <UnalignedSlice<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for OwnedType<T> where
T: Pod,
[src]
T: Pod,
type EItem = T
pub fn bytes_encode(
item: &'a <OwnedType<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <OwnedType<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a> BytesEncode<'a> for Str
[src]
type EItem = str
pub fn bytes_encode(
item: &'a <Str as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <Str as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for OwnedSlice<T> where
T: Pod,
[src]
T: Pod,
type EItem = [T]
pub fn bytes_encode(
item: &'a <OwnedSlice<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <OwnedSlice<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for CowType<T> where
T: Pod,
[src]
T: Pod,
type EItem = T
pub fn bytes_encode(
item: &'a <CowType<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <CowType<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for SerdeJson<T> where
T: 'a + Serialize,
[src]
T: 'a + Serialize,
type EItem = T
pub fn bytes_encode(
item: &<SerdeJson<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'_, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &<SerdeJson<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'_, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for UnalignedType<T> where
T: Pod,
[src]
T: Pod,
type EItem = T
pub fn bytes_encode(
item: &'a <UnalignedType<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <UnalignedType<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
impl<'a, T> BytesEncode<'a> for SerdeBincode<T> where
T: 'a + Serialize,
[src]
T: 'a + Serialize,
type EItem = T
pub fn bytes_encode(
item: &'a <SerdeBincode<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>
[src]
item: &'a <SerdeBincode<T> as BytesEncode<'a>>::EItem
) -> Result<Cow<'a, [u8]>, Box<dyn Error + 'static, Global>>