Trait nekolib::traits::One

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

乗法の単位元 $1$ を定義する。

Required Methods§

source

fn one() -> Self

乗法の単位元 $1$ を返す。

Implementations on Foreign Types§

source§

impl One for u64

source§

fn one() -> Self

source§

impl One for u32

source§

fn one() -> Self

source§

impl One for i128

source§

fn one() -> Self

source§

impl One for isize

source§

fn one() -> Self

source§

impl One for u8

source§

fn one() -> Self

source§

impl One for i32

source§

fn one() -> Self

source§

impl One for i8

source§

fn one() -> Self

source§

impl One for u16

source§

fn one() -> Self

source§

impl One for usize

source§

fn one() -> Self

source§

impl One for i16

source§

fn one() -> Self

source§

impl One for u128

source§

fn one() -> Self

source§

impl One for i64

source§

fn one() -> Self

Implementors§