Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ parse_usize
Function
parse_usize
crates/common/src/format.rs:1148–1150 ·
view source on GitHub ↗
(s: &Wtf8)
Source
from the content-addressed store, hash-verified
1146
}
1147
1148
fn parse_usize(s: &Wtf8) -> Option<usize> {
1149
s.as_str().ok().and_then(|s| s.parse().ok())
1150
}
1151
1152
impl FieldName {
1153
pub fn parse(text: &Wtf8) -> Result<Self, FormatParseError> {
Callers
3
parse_number
Function · 0.85
parse_part
Method · 0.85
parse
Method · 0.85
Calls
3
ok
Method · 0.80
as_str
Method · 0.45
parse
Method · 0.45
Tested by
no test coverage detected