摘要: 就像下面的这个例子,直接把要返回的类型包裹在一个枚举中,接收函数再根据结果分别处理。 1 use std::fs::File; 2 use std::io::BufReader; 3 use flate2::read::GzDecoder; 4 #[allow(non_camel_case_type 阅读全文
posted @ 2022-01-18 11:18 天使不设防 阅读(882) 评论(0) 推荐(0) 编辑