One

Trait One 

Source
pub trait One: Sized {
    // Required method
    fn one() -> Self;
}

Required Methods§

Source

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

fn one() -> Self

Source§

impl One for f64

Source§

fn one() -> Self

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: Vec> One for Mat2<T>