[−][src]Trait serde_hashkey::FloatRepr
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]
V: Visitor<'de>,
Visit the current value.
Implementors
impl FloatRepr<f32> for NeverFloat
[src]
pub fn serialize(_: f32) -> Result<Self, Error>
[src]
pub fn visit<'de, V>(&self, _: V) -> Result<V::Value, Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
impl FloatRepr<f32> for OrderedFloat<f32>
[src]
pub fn serialize(float: f32) -> Result<Self, Error>
[src]
pub fn visit<'de, V>(&self, visitor: V) -> Result<V::Value, Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
impl FloatRepr<f64> for NeverFloat
[src]
pub fn serialize(_: f64) -> Result<Self, Error>
[src]
pub fn visit<'de, V>(&self, _: V) -> Result<V::Value, Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,