我在使用 Rust 特性时发现困难,例如,哪个是正确的方法?
pub struct Cube<R>{ pub vertex_data: [Vertex;24], pub asMesh: gfx::Mesh<R> }
generics rust
generics ×1
rust ×1