Trait GenericKvSize

Source
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§

Source

fn update_size(&mut self, from: usize, to: usize)

Implementors§

Source§

impl GenericKvSize for &KvSize

For immutable references, the size is updated atomically.

Source§

impl GenericKvSize for &mut KvSize

For mutable references, the size can be directly updated.