pub fn get_serialized_size<T: Serialize>(index: &T) -> Result<usize>
Get the size of a serialized index without saving to disk
Useful for estimating storage requirements.