[][src]Struct indy_utils::keys::ArrayKey

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

A secure key representation for fixed-length keys

Implementations

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

pub fn from_slice<D: AsRef<[u8]>>(data: D) -> Self[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 + ArrayLength<u8>> Clone for ArrayKey<L>[src]

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

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

type Target = GenericArray<u8, L>

The resulting type after dereferencing.

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

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

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

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

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

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

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

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

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

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

impl<L: ArrayLength<u8>> Zeroize for ArrayKey<L> where
    GenericArray<u8, L>: Zeroize,
    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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,