#[repr(C, align(64))]pub struct U256x2 {
pub low: U256,
pub high: U256,
}Expand description
Paire de U256 traités ensemble pour amortir l’overhead d’appel de
fonction lors d’opérations par lots (batch processing).
⚠️ Note d’implémentation : ce type ne contient aucune instruction
SIMD explicite (pas d’intrinsics core::arch, pas de core::simd).
Les deux U256 sont traités par deux appels scalaires séquentiels.
Le compilateur peut, selon la cible et les flags (-C target-cpu=native),
choisir d’autovectoriser ce code — mais ce n’est ni garanti ni
contractuel. Ce type existe pour donner une API groupée pratique en
traitement par lots, pas pour promettre une exécution parallèle.
Les intrinsics SIMD explicites nécessiteraient du code unsafe, exclu
ici par #![deny(unsafe_code)] au niveau du crate.
Fields§
§low: U256§high: U256Implementations§
Trait Implementations§
impl Copy for U256x2
impl Eq for U256x2
impl StructuralPartialEq for U256x2
Auto Trait Implementations§
impl Freeze for U256x2
impl RefUnwindSafe for U256x2
impl Send for U256x2
impl Sync for U256x2
impl Unpin for U256x2
impl UnsafeUnpin for U256x2
impl UnwindSafe for U256x2
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