Struct secp256k1::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
sourceimpl AffineStorage
impl AffineStorage
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
sourceimpl Clone for AffineStorage
impl Clone for AffineStorage
sourcefn clone(&self) -> AffineStorage
fn clone(&self) -> AffineStorage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AffineStorage
impl Debug for AffineStorage
sourceimpl Default for AffineStorage
impl Default for AffineStorage
sourcefn default() -> AffineStorage
fn default() -> AffineStorage
Returns the “default value” for a type. Read more
sourceimpl From<AffineStorage> for Affine
impl From<AffineStorage> for Affine
sourcefn from(a: AffineStorage) -> Affine
fn from(a: AffineStorage) -> Affine
Performs the conversion.
sourceimpl Into<AffineStorage> for Affine
impl Into<AffineStorage> for Affine
sourcefn into(self) -> AffineStorage
fn into(self) -> AffineStorage
Performs the conversion.
sourceimpl PartialEq<AffineStorage> for AffineStorage
impl PartialEq<AffineStorage> for AffineStorage
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AffineStorage) -> bool
fn ne(&self, other: &AffineStorage) -> bool
This method tests for !=
.
impl Eq for AffineStorage
impl StructuralEq for AffineStorage
impl StructuralPartialEq for AffineStorage
Auto Trait Implementations
impl RefUnwindSafe for AffineStorage
impl Send for AffineStorage
impl Sync for AffineStorage
impl Unpin for AffineStorage
impl UnwindSafe for AffineStorage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more