pub struct LookupTable<Point> {
points: [Point; 8],
}Expand description
Lookup table containing precomputed values [p, 2p, 3p, ..., 8p]
Fields§
§points: [Point; 8]Implementations§
Source§impl<Point> LookupTable<Point>where
Point: ConditionallySelectable + Group,
impl<Point> LookupTable<Point>where
Point: ConditionallySelectable + Group,
Sourcepub fn select_vartime(&self, x: i8) -> Point
pub fn select_vartime(&self, x: i8) -> Point
Given -8 <= x <= 8, returns x * p in variable time.
Trait Implementations§
Source§impl<Point: Clone> Clone for LookupTable<Point>
impl<Point: Clone> Clone for LookupTable<Point>
Source§fn clone(&self) -> LookupTable<Point>
fn clone(&self) -> LookupTable<Point>
Returns a duplicate 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<Point: Debug> Debug for LookupTable<Point>
impl<Point: Debug> Debug for LookupTable<Point>
Source§impl<Point: Default> Default for LookupTable<Point>
impl<Point: Default> Default for LookupTable<Point>
Source§fn default() -> LookupTable<Point>
fn default() -> LookupTable<Point>
Returns the “default value” for a type. Read more
impl<Point: Copy> Copy for LookupTable<Point>
Auto Trait Implementations§
impl<Point> Freeze for LookupTable<Point>where
Point: Freeze,
impl<Point> RefUnwindSafe for LookupTable<Point>where
Point: RefUnwindSafe,
impl<Point> Send for LookupTable<Point>where
Point: Send,
impl<Point> Sync for LookupTable<Point>where
Point: Sync,
impl<Point> Unpin for LookupTable<Point>where
Point: Unpin,
impl<Point> UnsafeUnpin for LookupTable<Point>where
Point: UnsafeUnpin,
impl<Point> UnwindSafe for LookupTable<Point>where
Point: UnwindSafe,
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