pub fn parse_u64_or_bool(value : &[u8]) -> Result<f64> {
    match value {
        b"true" => Ok(f64::INFINITY),
        b"false" => Ok(f64::NEG_INFINITY),
        val => {
            let res_u64 = parse_u64(val)?;
            Ok(res_u64 as f64)
        }
    }
}
/// Try to parse the given array of bytes into an f64:
///   - INFINITY if it represents `"true"` in ASCII
///   - -INFINITY if it represents `"false"` in ASCII
///   - If it represents an integer in ASCII, returns that integer under an
///     f64 form.
///
/// Return an error in any other case.
Try to parse the given array of bytes into an f64:
INFINITY if it represents `"true"` in ASCII
-INFINITY if it represents `"false"` in ASCII
If it represents an integer in ASCII, returns that integer under an
f64 form.

Return an error in any other case.
Try to parse the given array of bytes into an f64 : INFINITY if it represents ` " true " ` in ASCII - INFINITY if it represents ` " false " ` in ASCII If it represents an integer in ASCII returns that integer under an f64 form . Return an error in any other case .
pub fn parse_u64_or_bool(value : &[u8]) -> Result<f64> {
    match value {
        b"true" => Ok(f64::INFINITY),
        b"false" => Ok(f64::NEG_INFINITY),
        val => {
            let res_u64 = parse_u64(val)?;
            Ok(res_u64 as f64)
        }
    }
}
pub fn parse_u64_or_bool ( value : & [ u8 ] ) -> Result < f64 > { match value { b" " => Ok ( f64 :: INFINITY ) , b" " => Ok ( f64 :: NEG_INFINITY ) , val => { let res_u64 = parse_u64 ( val ) ? ; Ok ( res_u64 as f64 ) } } }
Try to parse the given array of bytes into an f64:
 INFINITY if it represents `"true"` in ASCII
 -INFINITY if it represents `"false"` in ASCII
 If it represents an integer in ASCII, returns that integer under an
f64 form.
Try to parse the given array of bytes into an f64 : INFINITY if it represents ` " true " ` in ASCII - INFINITY if it represents ` " false " ` in ASCII If it represents an integer in ASCII returns that integer under an f64 form .
value
&[u8]
value
&[u8]