Struct rabbit::Key
[−]
[src]
pub struct Key(_);
128-bit key
... let key1: Key = [0u8; 16].into(); let key2: Key = byte_slice_with_len_eq_16.into(); let key3: Key = byte_slice_with_len_ne_16.into(); // Panic!
Trait Implementations
impl Clone for Key
[src]
fn clone(&self) -> Key
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 PartialEq for Key
[src]
fn eq(&self, __arg_0: &Key) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Key) -> bool
This method tests for !=
.
impl Eq for Key
[src]
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Key
[src]
impl Deref for Key
[src]
type Target = [u8; 16]
The resulting type after dereferencing
fn deref(&self) -> &[u8; 16]
The method called to dereference a value
impl From<[u8; 16]> for Key
[src]
impl<'a> From<&'a [u8]> for Key
[src]
Asserts that slice.len() == 16