Struct libsecp256k1::curve::AffineStorage
source · 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) -> AffineStorage
pub const fn new(x: FieldStorage, y: FieldStorage) -> AffineStorage
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.