[][src]Trait easy_ml::numeric::ZeroOne

pub trait ZeroOne: Sized {
    fn zero() -> Self;
fn one() -> Self; }

A trait defining how to obtain 0 and 1 for every implementing type.

The boilerplate implementations for primitives is performed with a macro. If a primitive type is missing from this list, please open an issue to add it in.

Required methods

fn zero() -> Self

fn one() -> Self

Loading content...

Implementations on Foreign Types

impl<T: ZeroOne> ZeroOne for Wrapping<T>[src]

impl ZeroOne for u8[src]

impl ZeroOne for i8[src]

impl ZeroOne for u16[src]

impl ZeroOne for i16[src]

impl ZeroOne for u32[src]

impl ZeroOne for i32[src]

impl ZeroOne for u64[src]

impl ZeroOne for i64[src]

impl ZeroOne for u128[src]

impl ZeroOne for i128[src]

impl ZeroOne for f32[src]

impl ZeroOne for f64[src]

impl ZeroOne for usize[src]

impl ZeroOne for isize[src]

Loading content...

Implementors

Loading content...