Trait clipline::Constant

source ·
pub trait Constant {
    type Output;

    const ZERO: Self::Output;
    const ONE: Self::Output;
    const TWO: Self::Output;
}
Expand description

Provides constants for 0, 1 and 2.

Required Associated Types§

Required Associated Constants§

source

const ZERO: Self::Output

source

const ONE: Self::Output

source

const TWO: Self::Output

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Constant for i8

§

type Output = i8

source§

const ZERO: i8 = 0i8

source§

const ONE: i8 = 1i8

source§

const TWO: i8 = 2i8

source§

impl Constant for i16

§

type Output = i16

source§

const ZERO: i16 = 0i16

source§

const ONE: i16 = 1i16

source§

const TWO: i16 = 2i16

source§

impl Constant for i32

§

type Output = i32

source§

const ZERO: i32 = 0i32

source§

const ONE: i32 = 1i32

source§

const TWO: i32 = 2i32

source§

impl Constant for i64

§

type Output = i64

source§

const ZERO: i64 = 0i64

source§

const ONE: i64 = 1i64

source§

const TWO: i64 = 2i64

source§

impl Constant for i128

§

type Output = i128

source§

const ZERO: i128 = 0i128

source§

const ONE: i128 = 1i128

source§

const TWO: i128 = 2i128

source§

impl Constant for isize

§

type Output = isize

source§

const ZERO: isize = 0isize

source§

const ONE: isize = 1isize

source§

const TWO: isize = 2isize

source§

impl Constant for u8

§

type Output = u8

source§

const ZERO: u8 = 0u8

source§

const ONE: u8 = 1u8

source§

const TWO: u8 = 2u8

source§

impl Constant for u16

§

type Output = u16

source§

const ZERO: u16 = 0u16

source§

const ONE: u16 = 1u16

source§

const TWO: u16 = 2u16

source§

impl Constant for u32

§

type Output = u32

source§

const ZERO: u32 = 0u32

source§

const ONE: u32 = 1u32

source§

const TWO: u32 = 2u32

source§

impl Constant for u64

§

type Output = u64

source§

const ZERO: u64 = 0u64

source§

const ONE: u64 = 1u64

source§

const TWO: u64 = 2u64

source§

impl Constant for u128

§

type Output = u128

source§

const ZERO: u128 = 0u128

source§

const ONE: u128 = 1u128

source§

const TWO: u128 = 2u128

source§

impl Constant for usize

§

type Output = usize

source§

const ZERO: usize = 0usize

source§

const ONE: usize = 1usize

source§

const TWO: usize = 2usize

Implementors§