我的意思是一棵树,其中每个节点都有多个子代,每个子代都引用其父代。
我已经走了这么远:
pub struct Post {
content: String,
links: Vec<Post>,
parent: Box<Post>,
}
impl Post {
pub fn new() -> Post {
Post {
content: String::new(),
links: Vec::new(),
parent: Box::new(......),
}
}
}
我要用点代替什么?