pub struct AccessHistoryTracker { /* private fields */ }Expand description
Memory access tracking
Implementations§
Source§impl AccessHistoryTracker
impl AccessHistoryTracker
pub fn new(capacity: usize) -> Self
Sourcepub fn record_access(&mut self, access: MemoryAccess)
pub fn record_access(&mut self, access: MemoryAccess)
Record a memory access
Sourcepub fn predict_next_accesses(&self, count: usize) -> Vec<PredictedAccess>
pub fn predict_next_accesses(&self, count: usize) -> Vec<PredictedAccess>
Get predicted next accesses
Auto Trait Implementations§
impl Freeze for AccessHistoryTracker
impl RefUnwindSafe for AccessHistoryTracker
impl Send for AccessHistoryTracker
impl Sync for AccessHistoryTracker
impl Unpin for AccessHistoryTracker
impl UnwindSafe for AccessHistoryTracker
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