pub trait HasX {
    type Output;

    fn x(&self) -> Self::Output;

    fn r(&self) -> Self::Output { ... }
}
Expand description

Expressions having a x or r coordinate.

Akin to swizzling with .x or .r, but easier.

Required Associated Types

Required Methods

Provided Methods

Implementors