Struct seckey::Key
[−]
[src]
pub struct Key<T: Sized>(_);
Temporary Key.
use seckey::Key; let key = Key::<[u8; 8]>::new([8; 8]); assert_eq!(key, [8u8; 8]);
Methods
impl<T> Key<T> where T: Sized
[src]
Trait Implementations
impl<T> From<T> for Key<T>
[src]
impl<T> Deref for Key<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T> DerefMut for Key<T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value
impl<T> Debug for Key<T>
[src]
impl<T: Sized, X: ?Sized> PartialEq<X> for Key<T>
[src]
fn eq(&self, rhs: &X) -> 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 !=
.