Struct seckey::Key
[−]
[src]
pub struct Key<T: Sized>(pub T);
Temporary Key.
use seckey::Key; let key = Key::from([8; 8]); assert_eq!(key, [8u8; 8]); assert!(key != [1u8; 8]); assert_eq!(key, Key::from([8u8; 8]));
Trait Implementations
impl<T> From<T> for Key<T>
[src]
impl<T> Borrow<T> for Key<T>
[src]
impl<T> BorrowMut<T> for Key<T>
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Default for Key<T> where T: Default
[src]
impl<T> Clone for Key<T> where T: Clone
[src]
fn clone(&self) -> Key<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T> Debug for Key<T>
[src]
impl<T: Sized> PartialEq<T> for Key<T>
[src]
fn eq(&self, rhs: &T) -> 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
This method tests for !=
.
impl<T: Sized> PartialEq<Key<T>> for Key<T>
[src]
fn eq(&self, Key: &Key<T>) -> 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
This method tests for !=
.