pub fn from_str_hex(num: &str) -> Option<f64>
Convert a string in base 16 to a float. Accepts a optional binary exponent.
This function accepts strings such as
Leading and trailing whitespace represent an error.
none
if the string did not represent a valid number. Otherwise,
Some(n)
where n
is the floating-point number represented by [num]
.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).