Struct libsecp256k1_core::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) -> 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
source§fn eq(&self, other: &AffineStorage) -> bool
fn eq(&self, other: &AffineStorage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)