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