MCPcopy 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
1148fn parse_usize(s: &Wtf8) -> Option<usize> {
1149 s.as_str().ok().and_then(|s| s.parse().ok())
1150}
1151
1152impl FieldName {
1153 pub fn parse(text: &Wtf8) -> Result<Self, FormatParseError> {

Callers 3

parse_numberFunction · 0.85
parse_partMethod · 0.85
parseMethod · 0.85

Calls 3

okMethod · 0.80
as_strMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected