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

    // Provided method
    fn is_one(&self) -> bool
       where Self: PartialEq { ... }
}

Required Methods§

source

fn one() -> Self

Provided Methods§

source

fn is_one(&self) -> boolwhere Self: PartialEq,

Implementations on Foreign Types§

source§

impl One for i32

source§

impl One for usize

source§

impl One for u32

source§

impl One for f64

source§

impl One for isize

source§

impl One for f32

Implementors§

source§

impl One for cp_library_rs::number_theory::modint_for_rollinghash::modint::Modint

source§

impl One for OrdF64

source§

impl<const MOD: u32> One for cp_library_rs::number_theory::modint::modint_::Modint<MOD>