[−][src]Struct indy_data_types::keys::ArrayKey
A secure key representation for fixed-length keys
Implementations
impl<L> ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
pub fn from_slice<D>(data: D) -> ArrayKey<L> where
D: AsRef<[u8]>,
[src]
D: AsRef<[u8]>,
pub fn extract(self) -> GenericArray<u8, L>
[src]
pub fn random() -> ArrayKey<L>
[src]
Methods from Deref<Target = GenericArray<u8, L>>
pub fn as_slice(&self) -> &[T]ⓘ
Extracts a slice containing the entire array.
pub fn as_mut_slice(&mut self) -> &mut [T]ⓘ
Extracts a mutable slice containing the entire array.
Trait Implementations
impl<L> Clone for ArrayKey<L> where
L: Clone + ArrayLength<u8>,
[src]
L: Clone + ArrayLength<u8>,
impl<L> Debug for ArrayKey<L> where
L: Debug + ArrayLength<u8>,
[src]
L: Debug + ArrayLength<u8>,
impl<L> Default for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
impl<L> Deref for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
type Target = GenericArray<u8, L>
The resulting type after dereferencing.
pub fn deref(&self) -> &<ArrayKey<L> as Deref>::Target
[src]
impl<L> DerefMut for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
impl<'a, L> Deserialize<'a> for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
pub fn deserialize<D>(
deserializer: D
) -> Result<ArrayKey<L>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
[src]
deserializer: D
) -> Result<ArrayKey<L>, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
impl<L> Eq for ArrayKey<L> where
L: Eq + ArrayLength<u8>,
[src]
L: Eq + ArrayLength<u8>,
impl<L> From<GenericArray<u8, L>> for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
impl<L> Hash for ArrayKey<L> where
L: Hash + ArrayLength<u8>,
[src]
L: Hash + ArrayLength<u8>,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<L> Ord for ArrayKey<L> where
L: Ord + ArrayLength<u8>,
[src]
L: Ord + ArrayLength<u8>,
pub fn cmp(&self, other: &ArrayKey<L>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<L> PartialEq<ArrayKey<L>> for ArrayKey<L> where
L: PartialEq<L> + ArrayLength<u8>,
[src]
L: PartialEq<L> + ArrayLength<u8>,
pub fn eq(&self, other: &ArrayKey<L>) -> bool
[src]
pub fn ne(&self, other: &ArrayKey<L>) -> bool
[src]
impl<L> PartialOrd<ArrayKey<L>> for ArrayKey<L> where
L: PartialOrd<L> + ArrayLength<u8>,
[src]
L: PartialOrd<L> + ArrayLength<u8>,
pub fn partial_cmp(&self, other: &ArrayKey<L>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &ArrayKey<L>) -> bool
[src]
pub fn le(&self, other: &ArrayKey<L>) -> bool
[src]
pub fn gt(&self, other: &ArrayKey<L>) -> bool
[src]
pub fn ge(&self, other: &ArrayKey<L>) -> bool
[src]
impl<L> Serialize for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl<L> StructuralEq for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
impl<L> StructuralPartialEq for ArrayKey<L> where
L: ArrayLength<u8>,
[src]
L: ArrayLength<u8>,
impl<L> Zeroize for ArrayKey<L> where
L: ArrayLength<u8> + Zeroize,
GenericArray<u8, L>: Zeroize,
[src]
L: ArrayLength<u8> + Zeroize,
GenericArray<u8, L>: Zeroize,
Auto Trait Implementations
impl<L> RefUnwindSafe for ArrayKey<L> where
<L as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
<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,
<L as ArrayLength<u8>>::ArrayType: Unpin,
impl<L> UnwindSafe for ArrayKey<L> where
<L as ArrayLength<u8>>::ArrayType: UnwindSafe,
<L as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,