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]
T: Sized + Copy + 'a,
Trait Implementations
impl<'a, T> Deref for TempKey<'a, T> where
T: Sized + Copy + 'a,
[src]
T: Sized + Copy + 'a,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.
impl<'a, T> DerefMut for TempKey<'a, T> where
T: Sized + Copy + 'a,
[src]
T: Sized + Copy + 'a,
impl<'a, T> Debug for TempKey<'a, T> where
T: Sized + Copy + 'a,
[src]
T: Sized + Copy + 'a,
impl<'a, T> PartialEq<T> for TempKey<'a, T> where
T: Sized + Copy + 'a,
[src]
T: Sized + Copy + 'a,
fn eq(&self, rhs: &T) -> bool
[src]
Constant time eq.
NOTE, it compare memory value.
fn ne(&self, other: &Rhs) -> bool
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]
T: Sized + Copy + 'a,
fn eq(&self, rhs: &TempKey<T>) -> bool
[src]
Constant time eq.
NOTE, it compare memory value.
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a, T> Eq for TempKey<'a, T> where
T: Sized + Copy + 'a,
[src]
T: Sized + Copy + 'a,
impl<'a, T> PartialOrd<T> for TempKey<'a, T> where
T: Sized + Copy + 'a,
[src]
T: Sized + Copy + 'a,
fn partial_cmp(&self, rhs: &T) -> Option<Ordering>
[src]
Constant time cmp.
NOTE, it compare memory value.
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
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]
T: Sized + Copy + 'a,
fn partial_cmp(&self, rhs: &TempKey<T>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
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]
T: Sized + Copy + 'a,
fn cmp(&self, rhs: &TempKey<T>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
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]
T: Sized + Copy,