Struct recrypt::api::PrivateKey [−]
pub struct PrivateKey { /* fields omitted */ }Methods
impl PrivateKey
impl PrivateKeypub fn bytes(&self) -> &[u8; 32]
pub fn bytes(&self) -> &[u8; 32]pub fn new(bytes: [u8; 32]) -> PrivateKey
pub fn new(bytes: [u8; 32]) -> PrivateKeypub 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 PrivateKeyimpl PartialEq for PrivateKey
impl PartialEq for PrivateKeyfn eq(&self, other: &PrivateKey) -> bool
fn eq(&self, other: &PrivateKey) -> boolThis 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) -> boolThis method tests for !=.
impl Copy for PrivateKey
impl Copy for PrivateKeyimpl Clone for PrivateKey
impl Clone for PrivateKeyfn clone(&self) -> PrivateKey
fn clone(&self) -> PrivateKeyReturns 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 PrivateKeyAuto Trait Implementations
impl Send for PrivateKey
impl Send for PrivateKeyimpl Sync for PrivateKey
impl Sync for PrivateKey