#[repr(u8)]pub enum AesVariant {
Aes128 = 0,
Aes192 = 1,
Aes256 = 2,
}Expand description
The AES variants, distinguished by key size: AES closes this set, so
it is an enum, not a number. (Each algorithm interface names its
closed set of parameterizations <algorithm>-variant.)
Variants§
Aes128 = 0
Aes192 = 1
Declined by every implementation of this package: every
minting path fails error.unsupported. The decline is a
portability ruling, not a gap — uniform service is impossible
(a major browser engine omits AES-192 from WebCrypto
deliberately and permanently) and the variant earns no
exception; see README.md, “Design notes”. Declared because
AES closes the set.
Aes256 = 2
Trait Implementations§
Source§impl Clone for AesVariant
impl Clone for AesVariant
Source§fn clone(&self) -> AesVariant
fn clone(&self) -> AesVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AesVariant
impl Debug for AesVariant
Source§impl From<AesVariant> for AesVariant
impl From<AesVariant> for AesVariant
Source§fn from(variant: AesVariant) -> Self
fn from(variant: AesVariant) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AesVariant
impl PartialEq for AesVariant
Source§fn eq(&self, other: &AesVariant) -> bool
fn eq(&self, other: &AesVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl ComponentType for AesVariant
impl Copy for AesVariant
impl Eq for AesVariant
impl Lift for AesVariant
impl Lower for AesVariant
impl StructuralPartialEq for AesVariant
Auto Trait Implementations§
impl Freeze for AesVariant
impl RefUnwindSafe for AesVariant
impl Send for AesVariant
impl Sync for AesVariant
impl Unpin for AesVariant
impl UnsafeUnpin for AesVariant
impl UnwindSafe for AesVariant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more