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 Default for PrivateKey
impl Default for PrivateKey
fn default() -> PrivateKey
fn default() -> PrivateKey
Returns the "default value" for a type. Read more
impl Debug for PrivateKey
impl Debug for PrivateKey
impl Drop for PrivateKey
impl Drop for PrivateKey
Auto Trait Implementations
impl Send for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Sync for PrivateKey