[go: up one dir, main page]

Struct seckey::Key [] [src]

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

Temporary Key.

use seckey::Key;

let key = Key::from([8u8; 8]);
assert_eq!(key, [8u8; 8]);
assert_ne!(key, [1u8; 8]);
assert_eq!(key, Key::from([8u8; 8]));

Methods

impl<T> Key<T>
[src]

Trait Implementations

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

The resulting type after dereferencing

The method called to dereference a value

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

The method called to mutably dereference a value

impl<T> Default for Key<T> where
    T: Default
[src]

Returns the "default value" for a type. Read more

impl<T> Clone for Key<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

Constant time eq.

NOTE, it compare memory value.

This method tests for !=.

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

Constant time eq.

NOTE, it compare memory value.

This method tests for !=.

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

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

Constant time cmp.

NOTE, it compare memory value.

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

This method returns an Ordering between self and other. Read more

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

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