pub struct ByteArrayBinding;Expand description
A simple pass-through binding for raw byte arrays (Vec<u8>).
This binding stores and retrieves byte arrays without any transformation.
Implementations§
Trait Implementations§
Source§impl Clone for ByteArrayBinding
impl Clone for ByteArrayBinding
Source§fn clone(&self) -> ByteArrayBinding
fn clone(&self) -> ByteArrayBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ByteArrayBinding
impl Debug for ByteArrayBinding
Source§impl Default for ByteArrayBinding
impl Default for ByteArrayBinding
Source§fn default() -> ByteArrayBinding
fn default() -> ByteArrayBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<Vec<u8>> for ByteArrayBinding
impl EntryBinding<Vec<u8>> for ByteArrayBinding
Source§fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<Vec<u8>>
fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<Vec<u8>>
Converts a
DatabaseEntry to an object. Read moreSource§fn object_to_entry(
&self,
object: &Vec<u8>,
entry: &mut DatabaseEntry,
) -> Result<()>
fn object_to_entry( &self, object: &Vec<u8>, entry: &mut DatabaseEntry, ) -> Result<()>
Converts an object to a
DatabaseEntry. Read moreimpl Copy for ByteArrayBinding
Auto Trait Implementations§
impl Freeze for ByteArrayBinding
impl RefUnwindSafe for ByteArrayBinding
impl Send for ByteArrayBinding
impl Sync for ByteArrayBinding
impl Unpin for ByteArrayBinding
impl UnsafeUnpin for ByteArrayBinding
impl UnwindSafe for ByteArrayBinding
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