fbxcel-dom
fbxcel-dom copied to clipboard
Avoid Deref polymorphism
std::ops::Deref should be only used for smart pointer types, and it is considered as an anti pattern to use it to "derive" parent type.
Deref should only be implemented for smart pointers to avoid confusion.
--- https://doc.rust-lang.org/stable/std/ops/trait.Deref.html
Currently, some object types abuse Deref trait, and this use of Deref should be removed in future.
v7400::object::**::*Handle(includingObjectHandle)- So many types!
v7400::data::mesh::layer::*Handle(includingtree::v7400::NodeHandle)
Not the biggest fan of macros, but delegate! might be useful.
https://crates.io/crates/delegate