Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
12
pub fn parse_bytes(literal: &[u8]) -> Option<f64> {
13
parse_inner(literal.trim_ascii())
14
}
15
16
fn parse_inner(literal: &[u8]) -> Option<f64> {
17
use lexical_parse_float::{
Callers
2
bytes_to_int
Function · 0.85
float_from_string
Function · 0.85
Calls
1
parse_inner
Function · 0.85
Tested by
no test coverage detected