You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the Partition trait and the structs Tree and PureTree could benefit from not being specialized to Vec as a container type for subdivision/branching. Some obvious types to use are [T; 2], [T; 4] and [T; 8]. The cube map partition could use a specialized hybrid container type that can hold either six (dividing the top-level sphere) or four elements (the per-side quad trees). This would also enable using lazy structures such as iterators or any kind of lazily initialized container/sequence.
The text was updated successfully, but these errors were encountered:
Note, that this can only be thought of as a workaround until Rust gains HKT and will therefore have to be changed at some point. It may be possible to do this backwards-compatibly, while deprecating the hacky bits of it.
Both the
Partition
trait and the structsTree
andPureTree
could benefit from not being specialized toVec
as a container type for subdivision/branching. Some obvious types to use are[T; 2]
,[T; 4]
and[T; 8]
. The cube map partition could use a specialized hybrid container type that can hold either six (dividing the top-level sphere) or four elements (the per-side quad trees). This would also enable using lazy structures such as iterators or any kind of lazily initialized container/sequence.The text was updated successfully, but these errors were encountered: