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
IMO, bytes are more honest and correct than octets (for bool and some enums, at least). For primitives such as char and u8, an exact bit-count is better than bytes
The Glossary and "Type Layout" don't specify the size of a "byte".
I think it's worth being explicit about that.
BTW, the
boolreference seems somewhat contradictory:size_of::<bool>() == 1implies platform-dependent byteu8(guaranteed octet)Note
Previous discussions:
IMO, bytes are more honest and correct than octets (for
booland someenums, at least). For primitives such ascharandu8, an exact bit-count is better than bytes