crosvm/bit_field
Jingkui Wang 85fa41f7b2 implement bitfield for enum with a width
If we know the width of an enum type, we don't need 'power of 2' number
of variants.

BUG=None
TEST=cargo test

Change-Id: I8148b28f86bb8e4fd4f67d8a6382fc713dad1439
Reviewed-on: https://chromium-review.googlesource.com/1530455
Commit-Ready: Jingkui Wang <jkwang@google.com>
Tested-by: Jingkui Wang <jkwang@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: David Tolnay <dtolnay@chromium.org>
2019-03-28 19:04:03 -07:00
..
bit_field_derive implement bitfield for enum with a width 2019-03-28 19:04:03 -07:00
src implement bitfield for enum with a width 2019-03-28 19:04:03 -07:00
tests implement bitfield for enum with a width 2019-03-28 19:04:03 -07:00
Cargo.toml