Trait Two

Source
pub trait Two {
    const TWO: Self;
}

Required Associated Constants§

Source

const TWO: Self

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.

Implementations on Foreign Types§

Source§

impl Two for f32

Source§

const TWO: Self = 2f32

Source§

impl Two for f64

Source§

const TWO: Self = 2f64

Source§

impl Two for i8

Source§

const TWO: Self = 2i8

Source§

impl Two for i16

Source§

const TWO: Self = 2i16

Source§

impl Two for i32

Source§

const TWO: Self = 2i32

Source§

impl Two for i64

Source§

const TWO: Self = 2i64

Source§

impl Two for i128

Source§

const TWO: Self = 2i128

Source§

impl Two for isize

Source§

const TWO: Self = 2isize

Source§

impl Two for u8

Source§

const TWO: Self = 2u8

Source§

impl Two for u16

Source§

const TWO: Self = 2u16

Source§

impl Two for u32

Source§

const TWO: Self = 2u32

Source§

impl Two for u64

Source§

const TWO: Self = 2u64

Source§

impl Two for u128

Source§

const TWO: Self = 2u128

Source§

impl Two for usize

Source§

const TWO: Self = 2usize

Implementors§

Source§

impl<T> Two for Matrix3<T>
where T: Zero + Two,

Source§

const TWO: Self

Source§

impl<T> Two for Matrix4<T>
where T: Zero + Two,

Source§

const TWO: Self

Source§

impl<T> Two for Vector3<T>
where T: Two,

Source§

const TWO: Self

Source§

impl<T> Two for Vector4<T>
where T: Two,

Source§

const TWO: Self

Source§

impl<T> Two for Euler<T>
where T: Two,

Source§

const TWO: Self

Source§

impl<T> Two for Quaternion<T>
where T: Two + Zero,

Source§

const TWO: Self

Source§

impl<T> Two for Rotor<T>
where T: Two + Zero,

Source§

const TWO: Self