#[repr(C)]pub struct ElligatorSwift(/* private fields */);
Expand description
Library-internal representation of a ElligatorSwift encoded group element.
Implementations§
Source§impl ElligatorSwift
impl ElligatorSwift
pub fn from_array(arr: [u8; 64]) -> ElligatorSwift
pub fn to_array(self) -> [u8; 64]
Source§impl ElligatorSwift
impl ElligatorSwift
Sourcepub 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.
Sourcepub 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§
Source§impl CPtr for ElligatorSwift
impl CPtr for ElligatorSwift
Source§impl Clone for ElligatorSwift
impl Clone for ElligatorSwift
Source§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 moreSource§impl Debug for ElligatorSwift
impl Debug for ElligatorSwift
Source§impl Hash for ElligatorSwift
impl Hash for ElligatorSwift
Source§impl<I> Index<I> for ElligatorSwift
impl<I> Index<I> for ElligatorSwift
Source§impl Ord for ElligatorSwift
impl Ord for ElligatorSwift
Source§fn cmp(&self, other: &ElligatorSwift) -> Ordering
fn cmp(&self, other: &ElligatorSwift) -> 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 ElligatorSwift
impl PartialEq for ElligatorSwift
Source§impl PartialOrd for ElligatorSwift
impl PartialOrd for ElligatorSwift
impl Copy for ElligatorSwift
impl Eq for ElligatorSwift
impl StructuralPartialEq for ElligatorSwift
Auto Trait Implementations§
impl Freeze for ElligatorSwift
impl RefUnwindSafe for ElligatorSwift
impl Send for ElligatorSwift
impl Sync for ElligatorSwift
impl Unpin for ElligatorSwift
impl UnwindSafe for ElligatorSwift
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.