I created this repo to help me understand using the From
and Into
traits: GitHub - mvolkmann/rust-from-into
Parts of it work fine, but I haven't been able to determine the correct way to call the into
method here:
The error is "mismatched types
expected struct Point3D
found reference &_
rustcE0308" but it's not clear to me how to fix this. It seems like I only want to call into
on references because I don't want this to transfer ownership.