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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Key

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

impl Hash for Key

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

Formats the value using the given formatter.

impl Deref for Key

The resulting type after dereferencing

The method called to dereference a value

impl From<[u8; 16]> for Key

Performs the conversion.

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

Asserts that slice.len() == 16

Performs the conversion.