pub struct X25519PrivateKey(pub [u8; 32]);Expand description
An X25519 private key: 32-byte Curve25519 scalar, little-endian.
The scalar is stored unclamped; implementations clamp as part of the X25519 function (RFC 7748).
Tuple Fields§
§0: [u8; 32]Trait Implementations§
Source§impl Clone for X25519PrivateKey
impl Clone for X25519PrivateKey
Source§fn clone(&self) -> X25519PrivateKey
fn clone(&self) -> X25519PrivateKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for X25519PrivateKey
Source§impl Debug for X25519PrivateKey
impl Debug for X25519PrivateKey
Source§impl Default for X25519PrivateKey
impl Default for X25519PrivateKey
Source§fn default() -> X25519PrivateKey
fn default() -> X25519PrivateKey
Returns the “default value” for a type. Read more
impl Eq for X25519PrivateKey
Source§impl PartialEq for X25519PrivateKey
impl PartialEq for X25519PrivateKey
impl StructuralPartialEq for X25519PrivateKey
Auto Trait Implementations§
impl Freeze for X25519PrivateKey
impl RefUnwindSafe for X25519PrivateKey
impl Send for X25519PrivateKey
impl Sync for X25519PrivateKey
impl Unpin for X25519PrivateKey
impl UnsafeUnpin for X25519PrivateKey
impl UnwindSafe for X25519PrivateKey
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