pub struct ByteBinding;Expand description
Binding for unsigned u8 byte values.
Stored as a single raw byte.
Unsigned byte binding.
Implementations§
Source§impl ByteBinding
impl ByteBinding
Trait Implementations§
Source§impl Clone for ByteBinding
impl Clone for ByteBinding
Source§fn clone(&self) -> ByteBinding
fn clone(&self) -> ByteBinding
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 moreimpl Copy for ByteBinding
Source§impl Debug for ByteBinding
impl Debug for ByteBinding
Source§impl Default for ByteBinding
impl Default for ByteBinding
Source§fn default() -> ByteBinding
fn default() -> ByteBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<u8> for ByteBinding
impl EntryBinding<u8> for ByteBinding
Source§fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<u8>
fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<u8>
Converts a
DatabaseEntry to an object. Read moreSource§fn object_to_entry(&self, object: &u8, entry: &mut DatabaseEntry) -> Result<()>
fn object_to_entry(&self, object: &u8, entry: &mut DatabaseEntry) -> Result<()>
Converts an object to a
DatabaseEntry. Read moreSource§impl TupleBinding<u8> for ByteBinding
impl TupleBinding<u8> for ByteBinding
Source§fn tuple_to_object(&self, input: &mut TupleInput) -> Result<u8>
fn tuple_to_object(&self, input: &mut TupleInput) -> Result<u8>
Converts tuple input to an object. Read more
Source§fn object_to_tuple(&self, object: &u8, output: &mut TupleOutput) -> Result<()>
fn object_to_tuple(&self, object: &u8, output: &mut TupleOutput) -> Result<()>
Converts an object to tuple output. Read more
Source§fn entry_to_input(entry: &DatabaseEntry) -> TupleInput
fn entry_to_input(entry: &DatabaseEntry) -> TupleInput
Creates a
TupleInput from a DatabaseEntry.Auto Trait Implementations§
impl Freeze for ByteBinding
impl RefUnwindSafe for ByteBinding
impl Send for ByteBinding
impl Sync for ByteBinding
impl Unpin for ByteBinding
impl UnsafeUnpin for ByteBinding
impl UnwindSafe for ByteBinding
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