Function serialize
Source pub fn serialize<S>(
value: &Option<f64>,
serializer: S,
) -> Result<S::Ok, S::Error>
Expand description
Serializes an optional float value to its string representation
§Arguments
value - The optional float value to serialize
serializer - The serializer to use
§Returns
A Result containing the serialized value or an error