Struct secp256k1_zkp_sys::PedersenCommitment
source · #[repr(C)]pub struct PedersenCommitment(/* private fields */);
Implementations§
source§impl PedersenCommitment
impl PedersenCommitment
sourcepub fn cmp_fast_unstable(&self, other: &Self) -> Ordering
pub fn cmp_fast_unstable(&self, other: &Self) -> 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.
sourcepub fn eq_fast_unstable(&self, other: &Self) -> bool
pub fn eq_fast_unstable(&self, other: &Self) -> 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§
source§impl CPtr for PedersenCommitment
impl CPtr for PedersenCommitment
source§impl Clone for PedersenCommitment
impl Clone for PedersenCommitment
source§fn clone(&self) -> PedersenCommitment
fn clone(&self) -> PedersenCommitment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PedersenCommitment
impl Debug for PedersenCommitment
source§impl Default for PedersenCommitment
impl Default for PedersenCommitment
source§impl Hash for PedersenCommitment
impl Hash for PedersenCommitment
source§impl<I> Index<I> for PedersenCommitment
impl<I> Index<I> for PedersenCommitment
source§impl Ord for PedersenCommitment
impl Ord for PedersenCommitment
source§fn cmp(&self, other: &PedersenCommitment) -> Ordering
fn cmp(&self, other: &PedersenCommitment) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PedersenCommitment
impl PartialEq for PedersenCommitment
source§impl PartialOrd for PedersenCommitment
impl PartialOrd for PedersenCommitment
source§fn partial_cmp(&self, other: &PedersenCommitment) -> Option<Ordering>
fn partial_cmp(&self, other: &PedersenCommitment) -> 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