Struct seckey::Key [] [src]

pub struct Key<T: Sized>(pub T);

Temporary Key.

use seckey::Key;

let key = Key::<[u8; 8]>::new(&[8; 8]);
assert_eq!(key, [8u8; 8]);
assert!(key != [1u8; 8]);
assert_eq!(key, Key::new(&[8u8; 8]));

Methods

impl<T> Key<T> where T: Sized
[src]

Trait Implementations

impl<T> From<T> for Key<T>
[src]

Performs the conversion.

impl<T> Debug for Key<T>
[src]

Formats the value using the given formatter.

impl<T: Sized> PartialEq<T> for Key<T>
[src]

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

This method tests for !=.

impl<T: Sized> PartialEq<Key<T>> for Key<T>
[src]

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

This method tests for !=.

impl<T: Sized> Eq for Key<T>
[src]

impl<T> Drop for Key<T> where T: Sized
[src]

A method called when the value goes out of scope. Read more