pub struct FloatBinding;Expand description
Binding for f32 (float) values using unsorted encoding.
Stored as raw IEEE 754 big-endian bits. The byte representation does NOT
sort in the same order as the float values. Use SortedFloatBinding for
sortable keys.
Implementations§
Source§impl FloatBinding
impl FloatBinding
Trait Implementations§
Source§impl Clone for FloatBinding
impl Clone for FloatBinding
Source§fn clone(&self) -> FloatBinding
fn clone(&self) -> FloatBinding
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 FloatBinding
impl Debug for FloatBinding
Source§impl Default for FloatBinding
impl Default for FloatBinding
Source§fn default() -> FloatBinding
fn default() -> FloatBinding
Returns the “default value” for a type. Read more
Source§impl EntryBinding<f32> for FloatBinding
impl EntryBinding<f32> for FloatBinding
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 FloatBinding
impl TupleBinding<f32> for FloatBinding
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.impl Copy for FloatBinding
Auto Trait Implementations§
impl Freeze for FloatBinding
impl RefUnwindSafe for FloatBinding
impl Send for FloatBinding
impl Sync for FloatBinding
impl Unpin for FloatBinding
impl UnsafeUnpin for FloatBinding
impl UnwindSafe for FloatBinding
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