Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Parse An i64 In Rust

asdf

rust
//! ```cargo
//! [dependencies]
//! nom = "7.1.3"
//! ```


use nom::IResult;
use nom::character::complete::i64;

fn main() {
  let alfa = parse("-23").unwrap().1;
  dbg!(alfa);
}

fn parse(source: &str) -> IResult<&str, i64> {
  let (source, result) = i64(source)?;
  Ok((source, result))
}
results start
python
print("asdf")
results start