pub struct AlignmentBench { /* private fields */ }Expand description
Alignment-aware memory checksum (same bytes, different base alignment).
Implementations§
Source§impl AlignmentBench
impl AlignmentBench
Sourcepub fn new(len: usize, offset: usize) -> Self
pub fn new(len: usize, offset: usize) -> Self
Create with requested alignment offset and working-set length.
Sourcepub fn run_scalar(&self) -> u64
pub fn run_scalar(&self) -> u64
Dense scalar checksum.
Sourcepub fn run_chunked(&self) -> u64
pub fn run_chunked(&self) -> u64
Chunked checksum (64-byte steps) — may interact with alignment differently.
Auto Trait Implementations§
impl Freeze for AlignmentBench
impl RefUnwindSafe for AlignmentBench
impl Send for AlignmentBench
impl Sync for AlignmentBench
impl Unpin for AlignmentBench
impl UnsafeUnpin for AlignmentBench
impl UnwindSafe for AlignmentBench
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> 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