[go: up one dir, main page]

Struct seckey::TempKey [] [src]

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

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: ?Sized + Copy> TempKey<'a, T>
[src]

[src]

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

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

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

Trait Implementations

impl<'a, T: ?Sized> Deref for TempKey<'a, T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T: ?Sized> DerefMut for TempKey<'a, T>
[src]

[src]

Mutably dereferences the value.

impl<'a, T: ?Sized> Debug for TempKey<'a, T>
[src]

[src]

Formats the value using the given formatter.

impl<'a, T: ?Sized> PartialEq<T> for TempKey<'a, T>
[src]

[src]

Constant time eq.

NOTE, it compare memory value.

1.0.0
[src]

This method tests for !=.

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

[src]

Constant time eq.

NOTE, it compare memory value.

1.0.0
[src]

This method tests for !=.

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

impl<'a, T: ?Sized> PartialOrd<T> for TempKey<'a, T>
[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: Sized> PartialOrd<TempKey<'b, T>> for TempKey<'a, T>
[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: Sized> Ord for TempKey<'a, T>
[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: ?Sized> Drop for TempKey<'a, T>
[src]

[src]

Executes the destructor for this type. Read more