#[repr(u8)]pub enum LittleEndian {
LITTLE_ENDIAN_0 = 0,
LITTLE_ENDIAN_1 = 1,
}Variants§
LITTLE_ENDIAN_0 = 0
The input and output data of the AES core is swapped as below: {B15,B14,B13,B12,B11,B10,B9,B8, B7,B6,B5,B4,B3,B2,B1,B0} swap to {B0,B1,B2,B3,B4,B5,B6,B7, B8,B9,B10,B11,B12,B13,B14,B15}, where B0~B15 refers to Byte0 to Byte15.
LITTLE_ENDIAN_1 = 1
The input and output data of AES core is not swapped.
Implementations§
Source§impl LittleEndian
impl LittleEndian
Trait Implementations§
Source§impl Clone for LittleEndian
impl Clone for LittleEndian
Source§fn clone(&self) -> LittleEndian
fn clone(&self) -> LittleEndian
Returns a duplicate of the value. Read more
1.0.0 · 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 LittleEndian
impl Debug for LittleEndian
Source§impl From<LittleEndian> for u8
impl From<LittleEndian> for u8
Source§fn from(val: LittleEndian) -> u8
fn from(val: LittleEndian) -> u8
Converts to this type from the input type.
Source§impl From<u8> for LittleEndian
impl From<u8> for LittleEndian
Source§fn from(val: u8) -> LittleEndian
fn from(val: u8) -> LittleEndian
Converts to this type from the input type.
Source§impl Ord for LittleEndian
impl Ord for LittleEndian
Source§fn cmp(&self, other: &LittleEndian) -> Ordering
fn cmp(&self, other: &LittleEndian) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LittleEndian
impl PartialEq for LittleEndian
Source§impl PartialOrd for LittleEndian
impl PartialOrd for LittleEndian
impl Copy for LittleEndian
impl Eq for LittleEndian
impl StructuralPartialEq for LittleEndian
Auto Trait Implementations§
impl Freeze for LittleEndian
impl RefUnwindSafe for LittleEndian
impl Send for LittleEndian
impl Sync for LittleEndian
impl Unpin for LittleEndian
impl UnwindSafe for LittleEndian
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