Struct bdk_chain::bitcoin::secp256k1::ffi::ElligatorSwift
#[repr(C)]pub struct ElligatorSwift(/* private fields */);
Expand description
Library-internal representation of a ElligatorSwift encoded group element.
Implementations§
§impl ElligatorSwift
impl ElligatorSwift
pub fn from_array(arr: [u8; 64]) -> ElligatorSwift
pub fn to_array(self) -> [u8; 64]
§impl ElligatorSwift
impl ElligatorSwift
pub fn cmp_fast_unstable(&self, other: &ElligatorSwift) -> Ordering
pub fn cmp_fast_unstable(&self, other: &ElligatorSwift) -> Ordering
Like cmp::Ord
but faster and with no guarantees across library versions.
The inner byte array of Self
is passed across the FFI boundry, as such there are
no guarantees on its layout and it is subject to change across library versions,
even minor versions. For this reason comparison function implementations (e.g.
Ord
, PartialEq
) take measures to ensure the data will remain constant (e.g., by
serializing it to a guaranteed format). This means they may be slow, this function
provides a faster comparison if you know that your types come from the same library
version.
pub fn eq_fast_unstable(&self, other: &ElligatorSwift) -> bool
pub fn eq_fast_unstable(&self, other: &ElligatorSwift) -> bool
Like cmp::Eq
but faster and with no guarantees across library versions.
The inner byte array of Self
is passed across the FFI boundry, as such there are
no guarantees on its layout and it is subject to change across library versions,
even minor versions. For this reason comparison function implementations (e.g.
Ord
, PartialEq
) take measures to ensure the data will remain constant (e.g., by
serializing it to a guaranteed format). This means they may be slow, this function
provides a faster equality check if you know that your types come from the same
library version.
Trait Implementations§
§impl AsRef<[u8; 64]> for ElligatorSwift
impl AsRef<[u8; 64]> for ElligatorSwift
§impl CPtr for ElligatorSwift
impl CPtr for ElligatorSwift
type Target = u8
fn as_c_ptr(&self) -> *const <ElligatorSwift as CPtr>::Target
fn as_mut_c_ptr(&mut self) -> *mut <ElligatorSwift as CPtr>::Target
§impl Clone for ElligatorSwift
impl Clone for ElligatorSwift
§fn clone(&self) -> ElligatorSwift
fn clone(&self) -> ElligatorSwift
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ElligatorSwift
impl Debug for ElligatorSwift
§impl Hash for ElligatorSwift
impl Hash for ElligatorSwift
§impl<I> Index<I> for ElligatorSwift
impl<I> Index<I> for ElligatorSwift
§impl Ord for ElligatorSwift
impl Ord for ElligatorSwift
§impl PartialEq for ElligatorSwift
impl PartialEq for ElligatorSwift
§fn eq(&self, other: &ElligatorSwift) -> bool
fn eq(&self, other: &ElligatorSwift) -> bool
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ElligatorSwift
impl PartialOrd for ElligatorSwift
§fn partial_cmp(&self, other: &ElligatorSwift) -> Option<Ordering>
fn partial_cmp(&self, other: &ElligatorSwift) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more