pub struct AffineStorage {
pub x: FieldStorage,
pub y: FieldStorage,
}
Expand description
Affine coordinate group element compact storage.
Fields§
§x: FieldStorage
§y: FieldStorage
Implementations§
Source§impl AffineStorage
impl AffineStorage
Sourcepub const fn new(x: FieldStorage, y: FieldStorage) -> Self
pub const fn new(x: FieldStorage, y: FieldStorage) -> Self
Create a new affine storage.
Sourcepub fn cmov(&mut self, a: &AffineStorage, flag: bool)
pub fn cmov(&mut self, a: &AffineStorage, flag: bool)
If flag is true, set *r equal to *a; otherwise leave it. Constant-time.
Trait Implementations§
Source§impl Clone for AffineStorage
impl Clone for AffineStorage
Source§fn clone(&self) -> AffineStorage
fn clone(&self) -> AffineStorage
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 Debug for AffineStorage
impl Debug for AffineStorage
Source§impl Default for AffineStorage
impl Default for AffineStorage
Source§fn default() -> AffineStorage
fn default() -> AffineStorage
Returns the “default value” for a type. Read more
Source§impl From<AffineStorage> for Affine
impl From<AffineStorage> for Affine
Source§fn from(a: AffineStorage) -> Affine
fn from(a: AffineStorage) -> Affine
Converts to this type from the input type.
Source§impl Into<AffineStorage> for Affine
impl Into<AffineStorage> for Affine
Source§fn into(self) -> AffineStorage
fn into(self) -> AffineStorage
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for AffineStorage
impl PartialEq for AffineStorage
impl Copy for AffineStorage
impl Eq for AffineStorage
impl StructuralPartialEq for AffineStorage
Auto Trait Implementations§
impl Freeze for AffineStorage
impl RefUnwindSafe for AffineStorage
impl Send for AffineStorage
impl Sync for AffineStorage
impl Unpin for AffineStorage
impl UnwindSafe for AffineStorage
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