结构 / 构造函数
默认构造函数
不带任何参数
带参数
调用父构造函数
替换父构造函数
struct
Man
{
age:
i8
}
let
man =
Man
{ age:
18
};
println!
(
"age is
{}
"
, man.
age
);