Rust does not support static fields in structures, so you can't do that. The closest thing you can get is an associated method: struct MyStruct { x: i32, ...
確定! 回上一頁