[−][src]Trait heed::BytesEncode
Associated Types
Loading content...Required methods
Loading content...Implementations on Foreign Types
impl<'a, T> BytesEncode<'a> for UnalignedType<T> where
T: 'a + AsBytes + Unaligned,
[src]
T: 'a + AsBytes + Unaligned,
type EItem = T
pub fn bytes_encode(
item: &'a <UnalignedType<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
[src]
item: &'a <UnalignedType<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
impl<'a, T> BytesEncode<'a> for OwnedType<T> where
T: 'a + AsBytes,
[src]
T: 'a + AsBytes,
type EItem = T
pub fn bytes_encode(
item: &'a <OwnedType<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
[src]
item: &'a <OwnedType<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
impl<'a, T> BytesEncode<'a> for OwnedSlice<T> where
T: 'a + AsBytes,
[src]
T: 'a + AsBytes,
type EItem = [T]
pub fn bytes_encode(
item: &'a <OwnedSlice<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
[src]
item: &'a <OwnedSlice<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
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
) -> Option<Cow<'a, [u8]>>
[src]
item: &'a <SerdeBincode<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
impl<'_> BytesEncode<'_> for Unit
[src]
type EItem = ()
pub fn bytes_encode(
_item: &<Unit as BytesEncode<'_>>::EItem
) -> Option<Cow<'_, [u8]>>
[src]
_item: &<Unit as BytesEncode<'_>>::EItem
) -> Option<Cow<'_, [u8]>>
impl<'a, T> BytesEncode<'a> for UnalignedSlice<T> where
T: 'a + AsBytes + Unaligned,
[src]
T: 'a + AsBytes + Unaligned,
type EItem = [T]
pub fn bytes_encode(
item: &'a <UnalignedSlice<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
[src]
item: &'a <UnalignedSlice<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
impl<'a, T> BytesEncode<'a> for CowSlice<T> where
T: 'a + AsBytes,
[src]
T: 'a + AsBytes,
type EItem = [T]
pub fn bytes_encode(
item: &'a <CowSlice<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
[src]
item: &'a <CowSlice<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
impl<'_> BytesEncode<'_> for Str
[src]
type EItem = str
pub fn bytes_encode(
item: &<Str as BytesEncode<'_>>::EItem
) -> Option<Cow<'_, [u8]>>
[src]
item: &<Str as BytesEncode<'_>>::EItem
) -> Option<Cow<'_, [u8]>>
impl<'a, T> BytesEncode<'a> for CowType<T> where
T: 'a + AsBytes,
[src]
T: 'a + AsBytes,
type EItem = T
pub fn bytes_encode(
item: &'a <CowType<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
[src]
item: &'a <CowType<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'a, [u8]>>
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
) -> Option<Cow<'_, [u8]>>
[src]
item: &<SerdeJson<T> as BytesEncode<'a>>::EItem
) -> Option<Cow<'_, [u8]>>