Struct bonsaidb_core::key::KeyFormat
source · pub struct KeyFormat;
Expand description
Trait Implementations§
source§impl<'a, T> BorrowedDeserializer<'a, T> for KeyFormatwhere
T: Key<'a>,
impl<'a, T> BorrowedDeserializer<'a, T> for KeyFormatwhere
T: Key<'a>,
source§fn deserialize_borrowed(&self, data: &'a [u8]) -> Result<T, Self::Error>
fn deserialize_borrowed(&self, data: &'a [u8]) -> Result<T, Self::Error>
Deserialize
T
from data
, borrowing when possible.source§impl<'a, T> Format<'a, T> for KeyFormatwhere
T: KeyEncoding,
impl<'a, T> Format<'a, T> for KeyFormatwhere
T: KeyEncoding,
source§fn serialize_into<W: Write>(
&self,
value: &T,
writer: W
) -> Result<(), Self::Error>
fn serialize_into<W: Write>( &self, value: &T, writer: W ) -> Result<(), Self::Error>
Serialize
value
into writer
.Auto Trait Implementations§
impl RefUnwindSafe for KeyFormat
impl Send for KeyFormat
impl Sync for KeyFormat
impl Unpin for KeyFormat
impl UnwindSafe for KeyFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more