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]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T> DerefMut for Key<T>[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value
impl<T> Default for Key<T> where
T: Default, [src]
T: Default,
impl<T> Clone for Key<T> where
T: Clone, [src]
T: Clone,
fn clone(&self) -> Key<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<T> Debug for Key<T>[src]
impl<T: Sized> PartialEq<T> for Key<T>[src]
fn eq(&self, rhs: &T) -> bool
Constant time eq.
NOTE, it compare memory value.
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl<T: Sized> PartialEq<Key<T>> for Key<T>[src]
fn eq(&self, rhs: &Key<T>) -> bool
Constant time eq.
NOTE, it compare memory value.
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl<T: Sized> Eq for Key<T>[src]
impl<T> PartialOrd<T> for Key<T>[src]
fn partial_cmp(&self, rhs: &T) -> Option<Ordering>
Constant time cmp.
NOTE, it compare memory value.
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
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) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
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]
fn partial_cmp(&self, rhs: &Key<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
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) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
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]
fn cmp(&self, rhs: &Key<T>) -> Ordering
This method returns an Ordering between self and other. Read more
impl<T> Drop for Key<T> where
T: Sized, [src]
T: Sized,