MCPcopy Index your code
hub / github.com/RustPython/RustPython / parse_bytes

Function parse_bytes

crates/literal/src/float.rs:12–14  ·  view source on GitHub ↗
(literal: &[u8])

Source from the content-addressed store, hash-verified

10}
11
12pub fn parse_bytes(literal: &[u8]) -> Option<f64> {
13 parse_inner(literal.trim_ascii())
14}
15
16fn parse_inner(literal: &[u8]) -> Option<f64> {
17 use lexical_parse_float::{

Callers 2

bytes_to_intFunction · 0.85
float_from_stringFunction · 0.85

Calls 1

parse_innerFunction · 0.85

Tested by

no test coverage detected