pub trait GenericKvSize {
// Required method
fn update_size(&mut self, from: usize, to: usize);
}
Expand description
A trait that dispatches the size update method regarding the mutability of the reference
to the KvSize
.
Required Methods§
fn update_size(&mut self, from: usize, to: usize)
Implementors§
impl GenericKvSize for &KvSize
For immutable references, the size is updated atomically.
impl GenericKvSize for &mut KvSize
For mutable references, the size can be directly updated.