Implement PartialOrd and Ord for MouseButton
This commit is contained in:
parent
e731041c15
commit
f10ae52385
2 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue