[][src]Struct indy_data_types::keys::ArrayKey

pub struct ArrayKey<L>(_)
where
    L: ArrayLength<u8>
;

A secure key representation for fixed-length keys

Implementations

impl<L> ArrayKey<L> where
    L: ArrayLength<u8>, 
[src]

pub fn from_slice<D>(data: D) -> ArrayKey<L> where
    D: AsRef<[u8]>, 
[src]

pub fn extract(self) -> GenericArray<u8, L>[src]

Methods from Deref<Target = GenericArray<u8, L>>

pub fn as_slice(&self) -> &[T]

Extracts a slice containing the entire array.

Trait Implementations

impl<L> Clone for ArrayKey<L> where
    L: Clone + ArrayLength<u8>, 
[src]

impl<L> Debug for ArrayKey<L> where
    L: Debug + ArrayLength<u8>, 
[src]

impl<L> Deref for ArrayKey<L> where
    L: ArrayLength<u8>, 
[src]

type Target = GenericArray<u8, L>

The resulting type after dereferencing.

impl<'a, L> Deserialize<'a> for ArrayKey<L> where
    L: ArrayLength<u8>, 
[src]

impl<L> Eq for ArrayKey<L> where
    L: Eq + ArrayLength<u8>, 
[src]

impl<L> From<GenericArray<u8, L>> for ArrayKey<L> where
    L: ArrayLength<u8>, 
[src]

impl<L> Hash for ArrayKey<L> where
    L: Hash + ArrayLength<u8>, 
[src]

impl<L> Ord for ArrayKey<L> where
    L: Ord + ArrayLength<u8>, 
[src]

impl<L> PartialEq<ArrayKey<L>> for ArrayKey<L> where
    L: PartialEq<L> + ArrayLength<u8>, 
[src]

impl<L> PartialOrd<ArrayKey<L>> for ArrayKey<L> where
    L: PartialOrd<L> + ArrayLength<u8>, 
[src]

impl<L> Serialize for ArrayKey<L> where
    L: ArrayLength<u8>, 
[src]

impl<L> StructuralEq for ArrayKey<L> where
    L: ArrayLength<u8>, 
[src]

impl<L> StructuralPartialEq for ArrayKey<L> where
    L: ArrayLength<u8>, 
[src]

impl<L> Zeroize for ArrayKey<L> where
    L: ArrayLength<u8> + Zeroize,
    GenericArray<u8, L>: Zeroize
[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for ArrayKey<L> where
    <L as ArrayLength<u8>>::ArrayType: RefUnwindSafe

impl<L> Send for ArrayKey<L>

impl<L> Sync for ArrayKey<L>

impl<L> Unpin for ArrayKey<L> where
    <L as ArrayLength<u8>>::ArrayType: Unpin

impl<L> UnwindSafe for ArrayKey<L> where
    <L as ArrayLength<u8>>::ArrayType: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.