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