One

Trait One 

Source
pub trait One {
    const ONE: Self;
}

Required Associated Constants§

Source

const ONE: 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 One for bool

Source§

const ONE: Self = true

Source§

impl One for f32

Source§

const ONE: Self = 1f32

Source§

impl One for f64

Source§

const ONE: Self = 1f64

Source§

impl One for i8

Source§

const ONE: Self = 1i8

Source§

impl One for i16

Source§

const ONE: Self = 1i16

Source§

impl One for i32

Source§

const ONE: Self = 1i32

Source§

impl One for i64

Source§

const ONE: Self = 1i64

Source§

impl One for i128

Source§

const ONE: Self = 1i128

Source§

impl One for isize

Source§

const ONE: Self = 1isize

Source§

impl One for u8

Source§

const ONE: Self = 1u8

Source§

impl One for u16

Source§

const ONE: Self = 1u16

Source§

impl One for u32

Source§

const ONE: Self = 1u32

Source§

impl One for u64

Source§

const ONE: Self = 1u64

Source§

impl One for u128

Source§

const ONE: Self = 1u128

Source§

impl One for usize

Source§

const ONE: Self = 1usize

Implementors§

Source§

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

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self