Skip to main content

One

Trait One 

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

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

Required Methods§

Source

fn one() -> Self

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

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 One for i8

Source§

fn one() -> Self

Source§

impl One for i16

Source§

fn one() -> Self

Source§

impl One for i32

Source§

fn one() -> Self

Source§

impl One for i64

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 u16

Source§

fn one() -> Self

Source§

impl One for u32

Source§

fn one() -> Self

Source§

impl One for u64

Source§

fn one() -> Self

Source§

impl One for u128

Source§

fn one() -> Self

Source§

impl One for usize

Source§

fn one() -> Self

Implementors§