Struct hacspec_sha3::RotationConstants
source · [−]Expand description
Fixed length byte array.
Tuple Fields
0: [usize; 25]
Implementations
sourceimpl RotationConstants
impl RotationConstants
pub fn from_slice<A: SeqTrait<usize>>(
input: &A,
start: usize,
len: usize
) -> Self
pub fn concat<A: SeqTrait<usize>>(&self, next: &A) -> Seq<usize>
pub fn from_slice_range<A: SeqTrait<usize>>(input: &A, r: Range<usize>) -> Self
pub fn slice(&self, start_out: usize, len: usize) -> Seq<usize>
pub fn slice_range(&self, r: Range<usize>) -> Seq<usize>
pub fn num_chunks(&self, chunk_size: usize) -> usize
pub fn get_chunk_len(&self, chunk_size: usize, chunk_number: usize) -> usize
pub fn get_chunk(
&self,
chunk_size: usize,
chunk_number: usize
) -> (usize, Seq<usize>)
pub fn set_chunk<A: SeqTrait<usize>>(
self,
chunk_size: usize,
chunk_number: usize,
input: &A
) -> Self
sourceimpl RotationConstants
impl RotationConstants
sourcepub fn from_hex(s: &str) -> RotationConstants
pub fn from_hex(s: &str) -> RotationConstants
Read hex string to Bytes.
sourceimpl RotationConstants
impl RotationConstants
pub fn into_le_bytes(self) -> Seq<u8>
Trait Implementations
sourceimpl Clone for RotationConstants
impl Clone for RotationConstants
sourcefn clone(&self) -> RotationConstants
fn clone(&self) -> RotationConstants
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RotationConstants
impl Debug for RotationConstants
sourceimpl Default for RotationConstants
impl Default for RotationConstants
sourceimpl Index<RangeFull> for RotationConstants
impl Index<RangeFull> for RotationConstants
sourceimpl Index<i32> for RotationConstants
impl Index<i32> for RotationConstants
sourceimpl Index<u32> for RotationConstants
impl Index<u32> for RotationConstants
sourceimpl Index<u8> for RotationConstants
impl Index<u8> for RotationConstants
sourceimpl Index<usize> for RotationConstants
impl Index<usize> for RotationConstants
sourceimpl IndexMut<i32> for RotationConstants
impl IndexMut<i32> for RotationConstants
sourceimpl IndexMut<u32> for RotationConstants
impl IndexMut<u32> for RotationConstants
sourceimpl IndexMut<u8> for RotationConstants
impl IndexMut<u8> for RotationConstants
sourceimpl IndexMut<usize> for RotationConstants
impl IndexMut<usize> for RotationConstants
sourceimpl SeqTrait<usize> for RotationConstants
impl SeqTrait<usize> for RotationConstants
fn create(x: usize) -> Self
fn len(&self) -> usize
fn iter(&self) -> Iter<'_, usize>
sourcefn update_slice<A: SeqTrait<usize>>(
self,
start_out: usize,
v: &A,
start_in: usize,
len: usize
) -> Self
fn update_slice<A: SeqTrait<usize>>(
self,
start_out: usize,
v: &A,
start_in: usize,
len: usize
) -> Self
Update this sequence with l
elements of v
, starting at start_in
,
at start_out
. Read more
impl Copy for RotationConstants
Auto Trait Implementations
impl RefUnwindSafe for RotationConstants
impl Send for RotationConstants
impl Sync for RotationConstants
impl Unpin for RotationConstants
impl UnwindSafe for RotationConstants
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more