Open jcyongqin opened 6 years ago
What would be the best way to resolve this, remove ::one() from Transform
?
Given that there is One
trait, we should rename Transform::one
to something more unique. identity()
is already provided for SquareMatrix
trait, which would conflict with Transform
for matrices... Maybe Transform
should just derive from One
and re-use it's one()
method instead of adding one for itself? There appears to be quite an overlap between traits (speaking of #419 ...).
I would suggest making Transform
depend on One
and then removing the one()
method from Transform
.
one
found= note: candidate #1 is defined in an impl of the trait
cgmath::One
for the typecgmath::Matrix4<_>
= note: candidate #2 is defined in an impl of the traitcgmath::Transform
for the typecgmath::Matrix4<_>
code: