pchickey edited PR #5030 from pch/component_flags_pub
to main
:
Previously this created a private type.
pchickey edited PR #5030 from pch/component_flags_pub
to main
:
Previously this created a private type, and private consts.
pchickey edited PR #5030 from pch/component_flags_pub
to main
:
Previously this created a private type, and private consts.
TODO the wit-bindgen version of flags gave a Display impl, and an
::all()
constructor,
pchickey edited PR #5030 from pch/component_flags_pub
to main
:
Previously this created a private type, and private consts.
TODO the wit-bindgen version of flags gave a Display impl, and an
::all()
constructor, and passes docs through
pchickey edited PR #5030 from pch/component_flags_pub
to main
:
Previously this created a private type, and private consts.
TODO the wit-bindgen version of flags gave a Display impl, and an
::all()
constructor, and passes rustdocs through
pchickey edited PR #5030 from pch/component_flags_pub
to main
:
Previously this created a private type, and private consts.
TODO the wit-bindgen version of flags gave a Display impl, an
::all()
& an::empty()
constructor, and passes rustdocs through
alexcrichton submitted PR review.
pchickey updated PR #5030 from pch/component_flags_pub
to main
.
pchickey updated PR #5030 from pch/component_flags_pub
to main
.
pchickey updated PR #5030 from pch/component_flags_pub
to main
.
pchickey edited PR #5030 from pch/component_flags_pub
to main
:
Previously this created a private type, and private consts.
I also added
fn all() -> Self
andfn empty() -> Self
constructors, because those are the two "most popular" functions frombitflags
I stole for the sake of some tests. empty ends up being the same as Default, and all is.empty().not()
, so these don't require any actual code generation.Future work might consider adding the rest of the bitflags methods & impls, and putting the docs through the macro into rustdocs.
pchickey has marked PR #5030 as ready for review.
pchickey merged PR #5030.
Last updated: Nov 22 2024 at 16:03 UTC