Trait ZeroOne

Source
pub trait ZeroOne {
    // Required methods
    fn zero() -> Self;
    fn one() -> Self;
}

Required Methods§

Source

fn zero() -> Self

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 ZeroOne for f32

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for f64

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for i8

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for i16

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for i32

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for i64

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for isize

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for u8

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for u16

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for u32

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for u64

Source§

fn zero() -> Self

Source§

fn one() -> Self

Source§

impl ZeroOne for usize

Source§

fn zero() -> Self

Source§

fn one() -> Self

Implementors§