Trait nekolib::traits::Zero

source ·
pub trait Zero: Add<Output = Self> + Sized {
    // Required method
    fn zero() -> Self;
}
Expand description

加法の単位元 $0$ を定義する。

Required Methods§

source

fn zero() -> Self

加法の単位元 $0$ を返す。

Implementations on Foreign Types§

source§

impl Zero for i128

source§

fn zero() -> Self

source§

impl Zero for i16

source§

fn zero() -> Self

source§

impl Zero for u16

source§

fn zero() -> Self

source§

impl Zero for i32

source§

fn zero() -> Self

source§

impl Zero for isize

source§

fn zero() -> Self

source§

impl Zero for i8

source§

fn zero() -> Self

source§

impl Zero for i64

source§

fn zero() -> Self

source§

impl Zero for u32

source§

fn zero() -> Self

source§

impl Zero for u128

source§

fn zero() -> Self

source§

impl Zero for u8

source§

fn zero() -> Self

source§

impl Zero for u64

source§

fn zero() -> Self

source§

impl Zero for usize

source§

fn zero() -> Self

Implementors§