pub struct Montgomery { /* private fields */ }
Expand description
modulo
を法として剰余をとる構造体。
Trait Implementations§
Source§impl Add for Montgomery
impl Add for Montgomery
Source§impl AddAssign for Montgomery
impl AddAssign for Montgomery
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl Clone for Montgomery
impl Clone for Montgomery
Source§fn clone(&self) -> Montgomery
fn clone(&self) -> Montgomery
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Div for Montgomery
impl Div for Montgomery
Source§impl DivAssign for Montgomery
impl DivAssign for Montgomery
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl FFElem for Montgomery
impl FFElem for Montgomery
Source§impl Mul for Montgomery
impl Mul for Montgomery
Source§impl MulAssign for Montgomery
impl MulAssign for Montgomery
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl Neg for Montgomery
impl Neg for Montgomery
Source§impl PartialEq for Montgomery
impl PartialEq for Montgomery
Source§impl Sub for Montgomery
impl Sub for Montgomery
Source§impl SubAssign for Montgomery
impl SubAssign for Montgomery
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for Montgomery
impl Eq for Montgomery
impl StructuralPartialEq for Montgomery
Auto Trait Implementations§
impl Freeze for Montgomery
impl RefUnwindSafe for Montgomery
impl Send for Montgomery
impl Sync for Montgomery
impl Unpin for Montgomery
impl UnwindSafe for Montgomery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more