Lines Matching refs:value
146 //! implemented by displaying the bits value of the internal struct.
164 //! - `bits`: the raw value of the flags currently stored
181 //! - `set`: inserts or removes the specified flags depending on the passed value
199 //! If your default value is equal to `0` (which is the same value as calling `empty()`
206 //! // Results in default value with bits: 0
221 //! If your default value is not equal to `0` you need to implement `Default` yourself:
249 //! Flags with a value equal to zero will have some strange behavior that one should be aware of.
276 //! Users should generally avoid defining a flag with a value of zero.
356 const $Flag:ident = $value:expr;
372 $Flag = $value;
392 $Flag:ident = $value:expr;
429 $Flag:ident = $value:expr;
521 pub const $Flag: Self = Self { bits: $value };
537 $Flag = $value;
543 /// Returns the raw value of the flags currently stored.
625 /// Inserts or removes the specified flags depending on the passed value.
627 pub fn set(&mut self, other: Self, value: bool) {
628 if value {
1633 pub(super) fn value() -> u8 {
1638 pub fn value() -> u8 {
1639 test::value()
1643 assert_eq!(module::value(), 1)