Ran into this limitation while trying to do some memory profiling.
Although less common, Box<str> and Box<[T]> are useful in certain situations.
Since they are provided by std, implementing DataSize for them would require a newtype.
Providing these implementations out of the box makes for much smoother usage.
Ran into this limitation while trying to do some memory profiling.
Although less common,
Box<str>
andBox<[T]>
are useful in certain situations. Since they are provided by std, implementingDataSize
for them would require a newtype. Providing these implementations out of the box makes for much smoother usage.