Trait ZZElem

Source
pub trait ZZElem:
    Sized
    + Copy
    + PartialEq
    + Neg<Output = Self>
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + AddAssign
    + SubAssign
    + MulAssign {
    // Required methods
    fn value(self) -> u32;
    fn modulo(self) -> u32;
    fn pow(self, p: u64) -> Self;
}
Expand description

$\mathbb{Z} / m \mathbb{Z}$の環の元

Required Methods§

Source

fn value(self) -> u32

内部の値を取り出す。

Source

fn modulo(self) -> u32

剰余の除数を返す。

Source

fn pow(self, p: u64) -> Self

selfp乗を返す。

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.

Implementors§