Implement Ord/PartialOrd for ModifiersState

This commit is contained in:
Diggory Hardy
2023-10-20 11:51:42 +01:00
committed by Kirill Chibisov
parent f6cc6c1472
commit 0bc8f5e33a

View File

@@ -1682,7 +1682,7 @@ bitflags! {
/// Represents the current state of the keyboard modifiers
///
/// Each flag represents a modifier and is set if this modifier is active.
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct ModifiersState: u32 {
/// The "shift" key.
const SHIFT = 0b100;