pub struct ShortBinding;Expand description
Binding for signed i16 (short) values.
Uses big-endian encoding with sign bit flipped for sortable ordering.
Implementations§
Source§impl ShortBinding
impl ShortBinding
Trait Implementations§
Source§impl Clone for ShortBinding
impl Clone for ShortBinding
Source§fn clone(&self) -> ShortBinding
fn clone(&self) -> ShortBinding
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 ShortBinding
impl Debug for ShortBinding
Source§impl Default for ShortBinding
impl Default for ShortBinding
Source§fn default() -> ShortBinding
fn default() -> ShortBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<i16> for ShortBinding
impl EntryBinding<i16> for ShortBinding
Source§fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<i16>
fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<i16>
Converts a
DatabaseEntry to an object. Read moreSource§fn object_to_entry(&self, object: &i16, entry: &mut DatabaseEntry) -> Result<()>
fn object_to_entry(&self, object: &i16, entry: &mut DatabaseEntry) -> Result<()>
Converts an object to a
DatabaseEntry. Read moreSource§impl TupleBinding<i16> for ShortBinding
impl TupleBinding<i16> for ShortBinding
Source§fn tuple_to_object(&self, input: &mut TupleInput) -> Result<i16>
fn tuple_to_object(&self, input: &mut TupleInput) -> Result<i16>
Converts tuple input to an object. Read more
Source§fn object_to_tuple(&self, object: &i16, output: &mut TupleOutput) -> Result<()>
fn object_to_tuple(&self, object: &i16, 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.impl Copy for ShortBinding
Auto Trait Implementations§
impl Freeze for ShortBinding
impl RefUnwindSafe for ShortBinding
impl Send for ShortBinding
impl Sync for ShortBinding
impl Unpin for ShortBinding
impl UnsafeUnpin for ShortBinding
impl UnwindSafe for ShortBinding
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