Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(associated_type_defaults)]
- fn main() {
- }
- trait Object {
- type Vertex = dyn Content + Send + Sync + 'static;
- }
- struct ObjectList {
- list: Vec<Box<dyn Object>>,
- }
- // Example of object
- struct SimpleObject {
- vertices: Vec<PosTexNorm>,
- }
- impl Object for SimpleObject {
- type Vertex = PosTexNorm;
- }
- struct PosTexNorm {}
- trait Content {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement