Parses an `i64` from `s`.
(s: &str)
| 150 | |
| 151 | /// Parses an `i64` from `s`. |
| 152 | pub 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`. |
| 159 | pub fn format_int64<F>(buf: &mut F, i: i64) -> Nestable |
no test coverage detected