[][src]Crate modtype_derive

Attribute Macros

use_modtype

An attribute macro to use a modular arithmetic type with a ConstValue argument.

Derive Macros

Add

Derives Add with #implementation::add.

AddAssign

Derives AddAssign with #implementation::add.

Bounded

Derives Bounded with #implementation::{min_value, max_value}.

CheckedAdd

Derives CheckedAdd with #implementation::checked_add.

CheckedDiv

Derives CheckedDiv with #implementation::checked_div.

CheckedMul

Derives CheckedMul with #implementation::checked_mul.

CheckedNeg

Derives CheckedNeg.

CheckedRem

Derives CheckedRem with #implementation::checked_rem.

CheckedSub

Derives CheckedSub with #implementation::checked_sub.

ConstValue

Derives ConstValue.

Deref

Derives Deref<Target = #InnerValue>.

Display

Derives Display with #implementation::fmt_display.

Div

Derives Div with #implementation::div.

DivAssign

Derives DivAssign with #implementation::div.

From

Derives From<{#InnerValue, BigUint, BigInt}> with #implementation::{new, from_biguint, from_bigint}.

FromPrimitive

Derives FromPrimitive with #implementation::from_{..}.

FromStr

Derives FromStr with #implementation::from_str.

Into

Derives From<Self> for #InnerValue.

Inv

Derives Inv with #implementation::inv.

ModtypeClone

Derives Clone without extra trait bound.

ModtypeCopy

Derives Copy without extra trait bound.

ModtypeDebug

Derives Debug with #implementation::fmt_debug.

ModtypeDefault

Derives Default without extra trait bound.

ModtypeEq

Derives Eq without extra trait bound.

ModtypeOrd

Derives Ord without extra trait bound.

ModtypePartialEq

Derives PartialEq without extra trait bound.

ModtypePartialOrd

Derives PartialOrd without extra trait bound.

Mul

Derives Mul with #implementation::mul.

MulAssign

Derives MulAssign with #implementation::mul.

Neg

Derives Neg with #implementation::neg.

Num

Derives Num with #implementation::from_str_radix.

One

Derives One with #implementation::{one, is_one}.

Pow

Derives Pow with #implementation::{pow_unsigned, pow_signed}.

Rem

Derives Rem with #implementation::rem.

RemAssign

Derives RemAssign with #implementation::rem.

Sub

Derives Sub with #implementation::sub.

SubAssign

Derives SubAssign with #implementation::sub.

Unsigned

Derives Unsigned.

Zero

Derives Zero with #implementation::{zero, is_zero}.

get

Derives get with #implementation::get.

new

Implement new with #implementation::new.

new_unchecked

Implement new_unchecked.