pub struct Replicated {
pub entries: u32,
pub samples: u32,
}Expand description
How much one replication step carried, in both units the accounting needs.
A pair rather than two arguments because they are trivially transposable and
a swap would be silent: entries drive the eviction and budget arithmetic,
samples drive count.
Fields§
§entries: u32Entries copied.
samples: u32Samples those entries hold; equal to entries unless runs were copied.
Implementations§
Trait Implementations§
Source§impl Clone for Replicated
impl Clone for Replicated
impl Copy for Replicated
Source§impl Debug for Replicated
impl Debug for Replicated
Source§impl Default for Replicated
impl Default for Replicated
impl Eq for Replicated
Source§impl Format for Replicated
Available on crate feature defmt only.
impl Format for Replicated
Available on crate feature
defmt only.Source§impl PartialEq for Replicated
impl PartialEq for Replicated
impl StructuralPartialEq for Replicated
Auto Trait Implementations§
impl Freeze for Replicated
impl RefUnwindSafe for Replicated
impl Send for Replicated
impl Sync for Replicated
impl Unpin for Replicated
impl UnsafeUnpin for Replicated
impl UnwindSafe for Replicated
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