Closed pmnoxx closed 2 years ago
As mentioned in the previous PR, this could be cleaned up by using the known_deep_size
macro, since these are all constant-size.
For example, see the implementation for chrono
:
https://github.com/Aeledfyr/deepsize/blob/23065db143811324ada5aeb87bc4410cf832c6a5/src/external_impls.rs#L167-L172
As mentioned in the previous PR, this could be cleaned up by using the
known_deep_size
macro, since these are all constant-size.For example, see the implementation for
chrono
:
@Aeledfyr Thanks, I updated the PR.
Looks good! Merging.
It may be a good idea to add support for more structures from
std
.use std::time::Instant
use std::net::SocketAddr