我正在try 编写一个类似Excel的数据 struct :
use std::collections::HashMap;
struct Excel {
columns: HashMap<&str, Vec<f64>>,
}
fn main() {}
但我有一个错误:
error[E0106]: missing lifetime specifier
--> src/main.rs:4:22
|
4 | columns: HashMap<&str, Vec<f64>>,
| ^ expected lifetime parameter
有人能帮我理解发生了什么吗?