Struct onionsalt::crypto::PublicKey
[−]
[src]
pub struct PublicKey(pub [u8; 32]);
A public key.
Trait Implementations
impl Debug for PublicKey
[src]
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for PublicKey
[src]
impl PartialEq for PublicKey
[src]
fn eq(&self, __arg_0: &PublicKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PublicKey) -> bool
This method tests for !=
.
impl Eq for PublicKey
[src]
impl Hash for PublicKey
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for PublicKey
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Deserialize for PublicKey
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<Self, D::Error> where
D: Deserializer,
D: Deserializer,
Deserialize this value given this Deserializer
.
impl Serialize for PublicKey
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where
S: Serializer,
S: Serializer,
Serializes this value into this serializer.