Trait Factorial

Source
pub trait Factorial: PrimInt + Unsigned {
    // Required method
    fn factorial(self) -> Self;
}

Required Methods§

Source

fn factorial(self) -> Self

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 Factorial for u8

Source§

fn factorial(self) -> Self

Source§

impl Factorial for u16

Source§

fn factorial(self) -> Self

Source§

impl Factorial for u32

Source§

fn factorial(self) -> Self

Source§

impl Factorial for u64

Source§

fn factorial(self) -> Self

Source§

impl Factorial for u128

Source§

fn factorial(self) -> Self

Source§

impl Factorial for usize

Source§

fn factorial(self) -> Self

Implementors§