Implement PackedOption to address #19.

The PackedOption<T> struct uses the same amount of memory as T, but can
represent None via a reserved value.
This commit is contained in:
Jakob Stoklund Olesen
2017-01-19 12:13:00 -08:00
parent 7b80bd03e3
commit e8993e79e4
2 changed files with 122 additions and 0 deletions

View File

@@ -24,3 +24,4 @@ mod constant_hash;
mod predicates;
mod legalizer;
mod ref_slice;
mod packed_option;