simplify-names #111
No reviewers
Labels
No labels
bug
design
duplicate
enhancement
maintenance
prospective
question
regression
stub
todo
ui
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: StudioInfinity/dyna3#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Vectornaut/dyna3:simplify-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request makes the naming changes requested in issues #109 and #110. It shouldn't affect behavior.
Notes
On the incoming branch, most methods implemented for
engine::PartialMatrix
useto destructure
self
. However, the implementation ofIntoIterator
for&'a PartialMatrix
still uses the expressionbecause the
Self
version leads to a compiler error that says "theSelf
constructor can only be used with tuple or unit structs" (error codeE0164
). I think this is becauseSelf
is a reference type in this case. Here's a minimal working example you can play with at the Rust Playground._assemb
suffixes from test assembly loaders e0230a6fdeSelf
in implementations whenever possibleJust a small adjustment -- if we are going to improve the names of some of the loaders by using full words, we may as well do it consistently for all of them
@ -247,3 +247,3 @@
// C-C "
// A-C -0.25 * φ^2 = -0.6545084971874737
fn load_tridim_icosahedron_assemb(assembly: &Assembly) {
fn load_tridim_icosahedron(assembly: &Assembly) {
given the changes above, should be either
load_tridiminished_icosahedron
or possiblyload_tridiminished
.Done in commit
83c1823
!@ -410,3 +410,3 @@
// to finish describing the dodecahedral circle packing, set the inversive
// distance regulators to -1. some of the regulators have already been set
fn load_dodeca_packing_assemb(assembly: &Assembly) {
fn load_dodeca_packing(assembly: &Assembly) {
Similarly, should be either
load_dodecahedral_packing
orload_dodecahedral
or possiblyload_dodecahedron
.Done in commit
83c1823
!