pub struct PackedIntBinding;Expand description
Binding for i32 values using packed (variable-length) encoding.
Values in [-119, 119] are stored in a single byte. Larger values use 2-5 bytes. This encoding is compact but NOT sortable.
Implementations§
Trait Implementations§
Source§impl Clone for PackedIntBinding
impl Clone for PackedIntBinding
Source§fn clone(&self) -> PackedIntBinding
fn clone(&self) -> PackedIntBinding
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 PackedIntBinding
Source§impl Debug for PackedIntBinding
impl Debug for PackedIntBinding
Source§impl Default for PackedIntBinding
impl Default for PackedIntBinding
Source§fn default() -> PackedIntBinding
fn default() -> PackedIntBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<i32> for PackedIntBinding
impl EntryBinding<i32> for PackedIntBinding
Source§fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<i32>
fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<i32>
Converts a
DatabaseEntry to an object. Read moreSource§fn object_to_entry(&self, object: &i32, entry: &mut DatabaseEntry) -> Result<()>
fn object_to_entry(&self, object: &i32, entry: &mut DatabaseEntry) -> Result<()>
Converts an object to a
DatabaseEntry. Read moreSource§impl TupleBinding<i32> for PackedIntBinding
impl TupleBinding<i32> for PackedIntBinding
Source§fn tuple_to_object(&self, input: &mut TupleInput) -> Result<i32>
fn tuple_to_object(&self, input: &mut TupleInput) -> Result<i32>
Converts tuple input to an object. Read more
Source§fn object_to_tuple(&self, object: &i32, output: &mut TupleOutput) -> Result<()>
fn object_to_tuple(&self, object: &i32, 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 PackedIntBinding
impl RefUnwindSafe for PackedIntBinding
impl Send for PackedIntBinding
impl Sync for PackedIntBinding
impl Unpin for PackedIntBinding
impl UnsafeUnpin for PackedIntBinding
impl UnwindSafe for PackedIntBinding
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