#[repr(transparent)]pub struct Secp256k1Pubkey(pub [u8; 64]);
Tuple Fields§
§0: [u8; 64]
Implementations§
Trait Implementations§
source§impl AbiExample for Secp256k1Pubkey
impl AbiExample for Secp256k1Pubkey
source§impl BorshDeserialize for Secp256k1Pubkey
impl BorshDeserialize for Secp256k1Pubkey
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSchema for Secp256k1Pubkey
impl BorshSchema for Secp256k1Pubkey
source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
source§impl BorshSerialize for Secp256k1Pubkey
impl BorshSerialize for Secp256k1Pubkey
source§impl Clone for Secp256k1Pubkey
impl Clone for Secp256k1Pubkey
source§fn clone(&self) -> Secp256k1Pubkey
fn clone(&self) -> Secp256k1Pubkey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for Secp256k1Pubkey
impl Hash for Secp256k1Pubkey
source§impl Ord for Secp256k1Pubkey
impl Ord for Secp256k1Pubkey
source§fn cmp(&self, other: &Secp256k1Pubkey) -> Ordering
fn cmp(&self, other: &Secp256k1Pubkey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Secp256k1Pubkey
impl PartialEq for Secp256k1Pubkey
source§impl PartialOrd for Secp256k1Pubkey
impl PartialOrd for Secp256k1Pubkey
impl Copy for Secp256k1Pubkey
impl Eq for Secp256k1Pubkey
impl StructuralPartialEq for Secp256k1Pubkey
Auto Trait Implementations§
impl Freeze for Secp256k1Pubkey
impl RefUnwindSafe for Secp256k1Pubkey
impl Send for Secp256k1Pubkey
impl Sync for Secp256k1Pubkey
impl Unpin for Secp256k1Pubkey
impl UnwindSafe for Secp256k1Pubkey
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more