risingwave_common_estimate_size::collections::private

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.