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

Function parse_int64

src/repr/src/strconv.rs:152–156  ·  view source on GitHub ↗

Parses an `i64` from `s`.

(s: &str)

Source from the content-addressed store, hash-verified

150
151/// Parses an `i64` from `s`.
152pub fn parse_int64(s: &str) -> Result<i64, ParseError> {
153 s.trim()
154 .parse()
155 .map_err(|e| ParseError::invalid_input_syntax("bigint", s).with_details(e))
156}
157
158/// Writes an `i64` to `buf`.
159pub fn format_int64<F>(buf: &mut F, i: i64) -> Nestable

Callers 6

jsonb_get_pathFunction · 0.85
cast_string_to_int64Function · 0.85
decode_textMethod · 0.85
decode_text_into_rowMethod · 0.85
cell_from_tokenFunction · 0.85
evalMethod · 0.85

Calls 3

with_detailsMethod · 0.80
parseMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected