Rust: Getting Error out of Peekable result causes “cannot move” error

前端 未结 0 955
有刺的猬
有刺的猬 2021-01-30 21:20

I\'m just trying to propagate the IO error like a good little programmer.

enum MyError {
    EOF,
    IO(std::io::Error),
}

fn peek_byte(mut p: Peekable         


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