Struct DerivedSymmetricKey
pub struct DerivedSymmetricKey { /* private fields */ }
Implementations§
§impl DerivedSymmetricKey
impl DerivedSymmetricKey
pub fn bytes(&self) -> &[u8; 32]
pub fn new_from_slice(bytes: &[u8]) -> Result<DerivedSymmetricKey, RecryptErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<DerivedSymmetricKey, RecryptErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
§Returns
Ok($t) or Err($RecryptErr::InputWrongSize]
Trait Implementations§
§impl Clone for DerivedSymmetricKey
impl Clone for DerivedSymmetricKey
§fn clone(&self) -> DerivedSymmetricKey
fn clone(&self) -> DerivedSymmetricKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for DerivedSymmetricKey
impl Debug for DerivedSymmetricKey
§impl From<DerivedSymmetricKey> for [u8; 32]
impl From<DerivedSymmetricKey> for [u8; 32]
§fn from(t: DerivedSymmetricKey) -> Self
fn from(t: DerivedSymmetricKey) -> Self
Converts to this type from the input type.
§impl Hash for DerivedSymmetricKey
impl Hash for DerivedSymmetricKey
§impl PartialEq for DerivedSymmetricKey
impl PartialEq for DerivedSymmetricKey
impl Eq for DerivedSymmetricKey
Auto Trait Implementations§
impl Freeze for DerivedSymmetricKey
impl RefUnwindSafe for DerivedSymmetricKey
impl Send for DerivedSymmetricKey
impl Sync for DerivedSymmetricKey
impl Unpin for DerivedSymmetricKey
impl UnwindSafe for DerivedSymmetricKey
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