pub trait HasX { type Output; fn x(&self) -> Self::Output; fn r(&self) -> Self::Output { ... } }
Expressions having a x or r coordinate.
x
r
Akin to swizzling with .x or .r, but easier.
.x
.r