[go: up one dir, main page]

typesize 0.1.3

A library to fetch an accurate estimate of the total memory usage of a value.
Documentation
1
2
3
4
5
6
7
8
use crate::TypeSize;

impl TypeSize for url::Url {
    fn extra_size(&self) -> usize {
        let serialization: String = self.clone().into();
        serialization.extra_size()
    }
}