pub enum CrcKeysStorage {
KeysFold256([u64; 23]),
KeysFutureTest([u64; 25]),
}Expand description
Internal storage for CRC folding keys that can accommodate different array sizes. This enum allows future expansion to support larger folding distances while maintaining backwards compatibility with existing const definitions.
Variants§
KeysFold256([u64; 23])
Current 23-key format for existing algorithms (supports up to 256-byte folding distances)
KeysFutureTest([u64; 25])
Future 25-key format for potential expanded folding distances (testing purposes only)
Implementations§
Source§impl CrcKeysStorage
impl CrcKeysStorage
Sourcepub fn to_keys_array_23(self) -> [u64; 23]
pub fn to_keys_array_23(self) -> [u64; 23]
Extracts keys as a [u64; 23] array for FFI compatibility. For variants with more than 23 keys, only the first 23 are returned. For variants with fewer keys, remaining slots are filled with 0.
Trait Implementations§
Source§impl Clone for CrcKeysStorage
impl Clone for CrcKeysStorage
Source§fn clone(&self) -> CrcKeysStorage
fn clone(&self) -> CrcKeysStorage
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 CrcKeysStorage
impl Debug for CrcKeysStorage
Source§impl PartialEq for CrcKeysStorage
impl PartialEq for CrcKeysStorage
impl Copy for CrcKeysStorage
impl StructuralPartialEq for CrcKeysStorage
Auto Trait Implementations§
impl Freeze for CrcKeysStorage
impl RefUnwindSafe for CrcKeysStorage
impl Send for CrcKeysStorage
impl Sync for CrcKeysStorage
impl Unpin for CrcKeysStorage
impl UnwindSafe for CrcKeysStorage
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