Trait One

Source
pub trait One {
    const ONE: Self;
}
Expand description

Provides one(multiple identity)

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 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 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

Implementors§

Source§

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

identity

Source§

const ONE: Self

Source§

impl<T: One> One for Vector2<T>

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

impl<T: Zero + One> One for Matrix2<T>

Source§

const ONE: Self

Source§

impl<T: Zero + One> One for Matrix2x3<T>

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self

Source§

impl<T: Zero + One> One for Matrix3x4<T>

Source§

const ONE: Self

Source§

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

Source§

const ONE: Self