Skip to main content

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 = 1_f32

Source§

impl One for f64

Source§

const ONE: Self = 1_f64

Source§

impl One for i8

Source§

const ONE: Self = 1_i8

Source§

impl One for i16

Source§

const ONE: Self = 1_i16

Source§

impl One for i32

Source§

const ONE: Self = 1_i32

Source§

impl One for i64

Source§

const ONE: Self = 1_i64

Source§

impl One for i128

Source§

const ONE: Self = 1_i128

Source§

impl One for isize

Source§

const ONE: Self = 1_isize

Source§

impl One for u8

Source§

const ONE: Self = 1_u8

Source§

impl One for u16

Source§

const ONE: Self = 1_u16

Source§

impl One for u32

Source§

const ONE: Self = 1_u32

Source§

impl One for u64

Source§

const ONE: Self = 1_u64

Source§

impl One for u128

Source§

const ONE: Self = 1_u128

Source§

impl One for usize

Source§

const ONE: Self = 1_usize

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