mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
We keep getting this pattern of properties that have a set of joint and disjoint flags, and copy-pasting or writing the same parsing and serialization code in slightly different ways. container-type is one such type, and I think we should have a single way of dealing with this, thus implement deriving for various traits for bitflags, with an attribute that says which flags are single vs mixed. See docs and properties I ported. The remaining ones I left TODOs with, they are a bit trickier but can be ported with some care. Differential Revision: https://phabricator.services.mozilla.com/D142418 |
||
---|---|---|
.. | ||
Cargo.toml | ||
cg.rs | ||
lib.rs |