Trait One

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

Types that can represent the value 1.

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.

Implementors§

Source§

impl One for Rational

Source§

const ONE: Self