Struct secp256k1_sys::recovery::RecoverableSignature
source · #[repr(C)]pub struct RecoverableSignature(/* private fields */);
recovery
only.Expand description
Library-internal representation of a Secp256k1 signature + recovery ID
Implementations§
source§impl RecoverableSignature
impl RecoverableSignature
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.
source§impl RecoverableSignature
impl RecoverableSignature
sourcepub fn new() -> RecoverableSignature
pub fn new() -> RecoverableSignature
Create a new (zeroed) signature usable for the FFI interface
Trait Implementations§
source§impl CPtr for RecoverableSignature
impl CPtr for RecoverableSignature
source§impl Clone for RecoverableSignature
impl Clone for RecoverableSignature
source§fn clone(&self) -> RecoverableSignature
fn clone(&self) -> RecoverableSignature
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecoverableSignature
impl Debug for RecoverableSignature
source§impl Default for RecoverableSignature
impl Default for RecoverableSignature
source§impl Hash for RecoverableSignature
Available on non-secp256k1_fuzz
only.
impl Hash for RecoverableSignature
secp256k1_fuzz
only.source§impl<I> Index<I> for RecoverableSignature
impl<I> Index<I> for RecoverableSignature
source§impl Ord for RecoverableSignature
Available on non-secp256k1_fuzz
only.
impl Ord for RecoverableSignature
secp256k1_fuzz
only.source§fn cmp(&self, other: &RecoverableSignature) -> Ordering
fn cmp(&self, other: &RecoverableSignature) -> 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 RecoverableSignature
Available on non-secp256k1_fuzz
only.
impl PartialEq for RecoverableSignature
secp256k1_fuzz
only.source§impl PartialOrd for RecoverableSignature
Available on non-secp256k1_fuzz
only.
impl PartialOrd for RecoverableSignature
secp256k1_fuzz
only.impl Copy for RecoverableSignature
impl Eq for RecoverableSignature
secp256k1_fuzz
only.Auto Trait Implementations§
impl Freeze for RecoverableSignature
impl RefUnwindSafe for RecoverableSignature
impl Send for RecoverableSignature
impl Sync for RecoverableSignature
impl Unpin for RecoverableSignature
impl UnwindSafe for RecoverableSignature
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)