A bits type that can be used as storage for a flags type. */
| 374 | A bits type that can be used as storage for a flags type. |
| 375 | */ |
| 376 | pub trait Bits: |
| 377 | Clone |
| 378 | + Copy |
| 379 | + PartialEq |
| 380 | + BitAnd<Output = Self> |
| 381 | + BitOr<Output = Self> |
| 382 | + BitXor<Output = Self> |
| 383 | + Not<Output = Self> |
| 384 | + Sized |
| 385 | + 'static |
| 386 | { |
| 387 | /// A value with all bits unset. |
| 388 | const EMPTY: Self; |
| 389 | |
| 390 | /// A value with all bits set. |
| 391 | const ALL: Self; |
| 392 | } |
| 393 | |
| 394 | // Not re-exported: prevent custom `Bits` impls being used in the `bitflags!` macro, |
| 395 | // or they may fail to compile based on crate features |
nothing calls this directly
no outgoing calls
no test coverage detected