Struct seckey::TempKey [] [src]

pub struct TempKey<'a, T: Sized + Copy + 'a>(_);

Temporary Key.

use seckey::TempKey;

let mut key = [8u8; 8];
let key = TempKey::new(&mut key);
assert_eq!(key, [8u8; 8]);
assert_ne!(key, [1u8; 8]);
let mut key2 = [8u8; 8];
assert_eq!(key, TempKey::new(&mut key2));

Methods

impl<'a, T> TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

Trait Implementations

impl<'a, T> Deref for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T> DerefMut for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

Mutably dereferences the value.

impl<'a, T> Debug for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

Formats the value using the given formatter.

impl<'a, T> PartialEq<T> for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

Constant time eq.

NOTE, it compare memory value.

1.0.0
[src]

This method tests for !=.

impl<'a, 'b, T> PartialEq<TempKey<'b, T>> for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

Constant time eq.

NOTE, it compare memory value.

1.0.0
[src]

This method tests for !=.

impl<'a, T> Eq for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

impl<'a, T> PartialOrd<T> for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

Constant time cmp.

NOTE, it compare memory value.

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl<'a, 'b, T> PartialOrd<TempKey<'b, T>> for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

impl<'a, T> Ord for TempKey<'a, T> where
    T: Sized + Copy + 'a, 
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<'a, T> Drop for TempKey<'a, T> where
    T: Sized + Copy
[src]

[src]

Executes the destructor for this type. Read more