Struct recrypt::api::PrivateKey [−]
pub struct PrivateKey { /* fields omitted */ }
Methods
impl PrivateKey
impl PrivateKey
pub fn bytes(&self) -> &[u8; 32]
pub fn bytes(&self) -> &[u8; 32]
pub fn new(bytes: [u8; 32]) -> PrivateKey
pub fn new(bytes: [u8; 32]) -> PrivateKey
pub fn new_from_slice(bytes: &[u8]) -> Result<PrivateKey, ApiErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<PrivateKey, ApiErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
Returns
Ok($t) or Err($ApiError::InputWrongSize]
Trait Implementations
impl Eq for PrivateKey
impl Eq for PrivateKey
impl PartialEq for PrivateKey
impl PartialEq for PrivateKey
fn eq(&self, other: &PrivateKey) -> bool
fn eq(&self, other: &PrivateKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PrivateKey) -> bool
fn ne(&self, other: &PrivateKey) -> bool
This method tests for !=
.
impl Copy for PrivateKey
impl Copy for PrivateKey
impl Clone for PrivateKey
impl Clone for PrivateKey
fn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for PrivateKey
impl Debug for PrivateKey
Auto Trait Implementations
impl Send for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Sync for PrivateKey