[][src]Trait serde_hashkey::FloatRepr

pub trait FloatRepr<T>: Sealed<T> + Copy + Sized + Debug + Serialize + Eq + Ord + Hash {
    pub fn serialize(value: T) -> Result<Self, Error>;
pub fn visit<'de, V>(&self, visitor: V) -> Result<V::Value, Error>
    where
        V: Visitor<'de>
; }

Trait implemented by floating point types which can be used in a FloatPolicy. This is implemented by the type representing a float, typically a wrapper, and defines the protocol necessary to incorporate the floating point type T into the Key protocol.

Required methods

pub fn serialize(value: T) -> Result<Self, Error>[src]

Serialize impl for a floating point value.

pub fn visit<'de, V>(&self, visitor: V) -> Result<V::Value, Error> where
    V: Visitor<'de>, 
[src]

Visit the current value.

Loading content...

Implementors

impl FloatRepr<f32> for NeverFloat[src]

impl FloatRepr<f32> for OrderedFloat<f32>[src]

impl FloatRepr<f64> for NeverFloat[src]

impl FloatRepr<f64> for OrderedFloat<f64>[src]

Loading content...