loupe
loupe copied to clipboard
Invalid values?
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.
For collections only the length is counted. I expected it to be the entire capacity.
For reference, I think https://github.com/DKerp/get-size gets it right.