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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Key
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Key
[src]

impl Hash for Key
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Key
[src]

Formats the value using the given formatter.

impl Deref for Key
[src]

The resulting type after dereferencing

The method called to dereference a value

impl From<[u8; 16]> for Key
[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for Key
[src]

Asserts that slice.len() == 16

Performs the conversion.