gltf
gltf copied to clipboard
Copy on gltf representing types?
Is there any particular reason most types representing a gltf type, like Node
, Mesh
or Primitive
, are only clone and not copy? Or may I PR all the copy derives?
If we take Node
for example, Copy
could be trivially derived, and also does not copy too many bytes as it does not copy the underlying json object:
#[derive(Clone, Debug)]
pub struct Node<'a> {
document: &'a Document,
index: usize,
json: &'a json::scene::Node,
}