Skip to main content

HaveYAndMinusOne

Trait HaveYAndMinusOne 

Source
pub trait HaveYAndMinusOne<T>: HaveY<T> {
    const MINUS_Y: Self;
    const DOWN: Self = Self::MINUS_Y;
}

Required Associated Constants§

Source

const MINUS_Y: Self

Provided Associated Constants§

Source

const DOWN: Self = Self::MINUS_Y

- Y

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> HaveYAndMinusOne<T> for Vector<T, 2>
where T: MinusOne + Zero,

Source§

const MINUS_Y: Vector<T, 2>

Source§

impl<T> HaveYAndMinusOne<T> for Vector<T, 3>
where T: MinusOne + Zero,

Source§

const MINUS_Y: Vector<T, 3>

Source§

impl<T> HaveYAndMinusOne<T> for Vector<T, 4>
where T: MinusOne + Zero,

Source§

const MINUS_Y: Vector<T, 4>