rollup merge of #20265: nicholasbishop/bishop_add_missing_bitflags_methods
The methods `from_bits` and `from_bits_truncate` were missing from the list of generated methods. Didn't see a useful way to abbreviate, so added with the same docstrings used in the macro definition.
This commit is contained in:
commit
b1dec37561
|
@ -104,6 +104,10 @@
|
||||||
/// - `empty`: an empty set of flags
|
/// - `empty`: an empty set of flags
|
||||||
/// - `all`: the set of all flags
|
/// - `all`: the set of all flags
|
||||||
/// - `bits`: the raw value of the flags currently stored
|
/// - `bits`: the raw value of the flags currently stored
|
||||||
|
/// - `from_bits`: convert from underlying bit representation, unless that
|
||||||
|
/// representation contains bits that do not correspond to a flag
|
||||||
|
/// - `from_bits_truncate`: convert from underlying bit representation, dropping
|
||||||
|
/// any bits that do not correspond to flags
|
||||||
/// - `is_empty`: `true` if no flags are currently stored
|
/// - `is_empty`: `true` if no flags are currently stored
|
||||||
/// - `is_all`: `true` if all flags are currently set
|
/// - `is_all`: `true` if all flags are currently set
|
||||||
/// - `intersects`: `true` if there are flags common to both `self` and `other`
|
/// - `intersects`: `true` if there are flags common to both `self` and `other`
|
||||||
|
|
Loading…
Reference in New Issue