On Wed, Jul 24, 2013 at 12:33 PM, Brendan Zabarauskas <[email protected]> wrote: > On 25/07/2013, at 2:15 AM, Evan Martin <[email protected]> wrote: > > Is an Option<u8> implemented as a pair of (type, value) or is it packed into > a single word? > > > A quick test shows: > > rusti> std::sys::size_of::<Option<u8>>() > 16 > > ~Brendan
It will be 2 bytes, it's just that enum discriminants aren't made as small as possible yet. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
