loupe icon indicating copy to clipboard operation
loupe copied to clipboard

Invalid values?

Open dfaust opened this issue 2 years ago • 0 comments

Hi. I'm sorry for being a bit negative. But don't think the values calculated by this crate are correct. Either that or I didn't understand what this crate tries to achieve.

For example the following screen shot shows the tests for the Option type. I expected the size of the Option to always be the same, whether it contains a value, or not. Also the values for the padding seem off.

grafik

For collections only the length is counted. I expected it to be the entire capacity.

grafik

For reference, I think https://github.com/DKerp/get-size gets it right.

dfaust avatar Jul 24 '23 16:07 dfaust