Implement PartialOrd and Ord for MouseButton

This commit is contained in:
StarStarJ
2023-09-17 11:51:03 +02:00
committed by Kirill Chibisov
parent 27cd20739d
commit e038597e81
2 changed files with 2 additions and 1 deletions

View File

@@ -1029,7 +1029,7 @@ impl ElementState {
///
/// **macOS:** `Back` and `Forward` might not work with all hardware.
/// **Orbital:** `Back` and `Forward` are unsupported due to orbital not supporting them.
#[derive(Debug, Hash, PartialEq, Eq, Clone, Copy)]
#[derive(Debug, Hash, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub enum MouseButton {
Left,