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