how to get element without consuming iterator int rust(problem with rewriting strtol in rust)

后端 未结 0 1921
一整个雨季
一整个雨季 2021-02-04 19:08

I implement strtol in Rust like this:

fn strtol(chars: &mut Chars<\'_>) -> i64 {
    let mut result: i64 = 0;
    loop {
        match c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题