pub struct SortedDoubleBinding;Expand description
Binding for f64 (double) values using sortable encoding.
Uses sign-bit manipulation so the byte representation sorts in the same order as the double values.
Implementations§
Trait Implementations§
Source§impl Clone for SortedDoubleBinding
impl Clone for SortedDoubleBinding
Source§fn clone(&self) -> SortedDoubleBinding
fn clone(&self) -> SortedDoubleBinding
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 SortedDoubleBinding
impl Debug for SortedDoubleBinding
Source§impl Default for SortedDoubleBinding
impl Default for SortedDoubleBinding
Source§fn default() -> SortedDoubleBinding
fn default() -> SortedDoubleBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<f64> for SortedDoubleBinding
impl EntryBinding<f64> for SortedDoubleBinding
Source§fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<f64>
fn entry_to_object(&self, entry: &DatabaseEntry) -> Result<f64>
Converts a
DatabaseEntry to an object. Read moreSource§fn object_to_entry(&self, object: &f64, entry: &mut DatabaseEntry) -> Result<()>
fn object_to_entry(&self, object: &f64, entry: &mut DatabaseEntry) -> Result<()>
Converts an object to a
DatabaseEntry. Read moreSource§impl TupleBinding<f64> for SortedDoubleBinding
impl TupleBinding<f64> for SortedDoubleBinding
Source§fn tuple_to_object(&self, input: &mut TupleInput) -> Result<f64>
fn tuple_to_object(&self, input: &mut TupleInput) -> Result<f64>
Converts tuple input to an object. Read more
Source§fn object_to_tuple(&self, object: &f64, output: &mut TupleOutput) -> Result<()>
fn object_to_tuple(&self, object: &f64, 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 SortedDoubleBinding
Auto Trait Implementations§
impl Freeze for SortedDoubleBinding
impl RefUnwindSafe for SortedDoubleBinding
impl Send for SortedDoubleBinding
impl Sync for SortedDoubleBinding
impl Unpin for SortedDoubleBinding
impl UnsafeUnpin for SortedDoubleBinding
impl UnwindSafe for SortedDoubleBinding
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