Struct recrypt::api::DerivedSymmetricKey [−]
pub struct DerivedSymmetricKey { /* fields omitted */ }
Methods
impl DerivedSymmetricKey
impl DerivedSymmetricKey
pub fn new(bytes: [u8; 32]) -> Self
pub fn new(bytes: [u8; 32]) -> Self
construct $t from fixed size byte array
pub fn bytes(&self) -> &[u8; 32]
pub fn bytes(&self) -> &[u8; 32]
pub fn new_from_slice(bytes: &[u8]) -> Result<DerivedSymmetricKey, ApiErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<DerivedSymmetricKey, 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 Clone for DerivedSymmetricKey
impl Clone for DerivedSymmetricKey
fn clone(&self) -> DerivedSymmetricKey
fn clone(&self) -> DerivedSymmetricKey
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 Copy for DerivedSymmetricKey
impl Copy for DerivedSymmetricKey
impl Debug for DerivedSymmetricKey
impl Debug for DerivedSymmetricKey
fn fmt(&self, formatter: &mut Formatter) -> Result
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for DerivedSymmetricKey
impl PartialEq for DerivedSymmetricKey
fn eq(&self, other: &DerivedSymmetricKey) -> bool
fn eq(&self, other: &DerivedSymmetricKey) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for DerivedSymmetricKey
impl Eq for DerivedSymmetricKey
Auto Trait Implementations
impl Send for DerivedSymmetricKey
impl Send for DerivedSymmetricKey
impl Sync for DerivedSymmetricKey
impl Sync for DerivedSymmetricKey