pub trait GenericMeshWithMaterial: GenericMesh {
// Required method
fn get_material(&self) -> Option<&dyn Material>;
}
Expand description
The GenericMeshWithMaterial
trait helps the MeshWithMaterial
struct to be able to turn into an object