Struct groupy::Wnaf [−][src]
pub struct Wnaf<W, B, S> { /* fields omitted */ }
Expand description
A “w-ary non-adjacent form” exponentiation context.
Implementations
impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>>
[src]
impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>>
[src]impl<B, S: AsRef<[i64]>> Wnaf<usize, B, S>
[src]
impl<B, S: AsRef<[i64]>> Wnaf<usize, B, S>
[src]pub fn base<G: CurveProjective>(&mut self, base: G) -> G where
B: AsMut<Vec<G>>,
[src]
pub fn base<G: CurveProjective>(&mut self, base: G) -> G where
B: AsMut<Vec<G>>,
[src]Performs exponentiation given a base.
impl<B, S: AsMut<Vec<i64>>> Wnaf<usize, B, S>
[src]
impl<B, S: AsMut<Vec<i64>>> Wnaf<usize, B, S>
[src]pub fn scalar<G: CurveProjective>(
&mut self,
scalar: <<G as CurveProjective>::Scalar as PrimeField>::Repr
) -> G where
B: AsRef<[G]>,
[src]
pub fn scalar<G: CurveProjective>(
&mut self,
scalar: <<G as CurveProjective>::Scalar as PrimeField>::Repr
) -> G where
B: AsRef<[G]>,
[src]Performs exponentiation given a scalar.
Trait Implementations
Auto Trait Implementations
impl<W, B, S> RefUnwindSafe for Wnaf<W, B, S> where
B: RefUnwindSafe,
S: RefUnwindSafe,
W: RefUnwindSafe,
B: RefUnwindSafe,
S: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, B, S> Send for Wnaf<W, B, S> where
B: Send,
S: Send,
W: Send,
B: Send,
S: Send,
W: Send,
impl<W, B, S> Sync for Wnaf<W, B, S> where
B: Sync,
S: Sync,
W: Sync,
B: Sync,
S: Sync,
W: Sync,
impl<W, B, S> Unpin for Wnaf<W, B, S> where
B: Unpin,
S: Unpin,
W: Unpin,
B: Unpin,
S: Unpin,
W: Unpin,
impl<W, B, S> UnwindSafe for Wnaf<W, B, S> where
B: UnwindSafe,
S: UnwindSafe,
W: UnwindSafe,
B: UnwindSafe,
S: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,