pub struct DHPublicKey(/* private fields */);Expand description
An X25519 public key.
Implementations§
Source§impl DHPublicKey
impl DHPublicKey
pub fn into_bytes(self) -> [u8; 32]
pub fn from_bytes(bytes: [u8; 32]) -> Self
Trait Implementations§
Source§impl Clone for DHPublicKey
impl Clone for DHPublicKey
Source§fn clone(&self) -> DHPublicKey
fn clone(&self) -> DHPublicKey
Returns a duplicate 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 Debug for DHPublicKey
impl Debug for DHPublicKey
impl Copy for DHPublicKey
Auto Trait Implementations§
impl Freeze for DHPublicKey
impl RefUnwindSafe for DHPublicKey
impl Send for DHPublicKey
impl Sync for DHPublicKey
impl Unpin for DHPublicKey
impl UnsafeUnpin for DHPublicKey
impl UnwindSafe for DHPublicKey
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