MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_uint64

Function parse_uint64

src/repr/src/strconv.rs:206–210  ·  view source on GitHub ↗

Parses an `u64` from `s`.

(s: &str)

Source from the content-addressed store, hash-verified

204
205/// Parses an `u64` from `s`.
206pub fn parse_uint64(s: &str) -> Result<u64, ParseError> {
207 s.trim()
208 .parse()
209 .map_err(|e| ParseError::invalid_input_syntax("uint8", s).with_details(e))
210}
211
212/// Writes an `u64` to `buf`.
213pub fn format_uint64<F>(buf: &mut F, u: u64) -> Nestable

Callers 4

cast_string_to_uint64Function · 0.85
decode_textMethod · 0.85
decode_text_into_rowMethod · 0.85
evalMethod · 0.85

Calls 3

with_detailsMethod · 0.80
parseMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected