Rust what data hold a variable which has assigned a struct to it

后端 未结 0 1500
清歌不尽
清歌不尽 2021-01-16 20:21

If we have the following code:

struct Person {
    age: i32
}

fn main() {
    let person =  Person{age : 52};
}

I know how to use the struct

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