Rust - Enum variant that references a struct

后端 未结 0 1195
走了就别回头了
走了就别回头了 2020-12-08 07:20

I am new to rust. I have this code:

enum Foo {
    F1 { x: Vec, y: i32 },
    F2 { x: &Bar },
}

struc         


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