pub struct Barrett { /* private fields */ }Expand description
Provide a method to perform Barrett Reduction.
Since the value grows to nearly the third power of modulus during the calculation process, only up to 32 bits are supported.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Barrett
impl RefUnwindSafe for Barrett
impl Send for Barrett
impl Sync for Barrett
impl Unpin for Barrett
impl UnwindSafe for Barrett
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