You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 theOption
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.
The text was updated successfully, but these errors were encountered: