Derive PartialOrd, Ord and Hash for PadProbeId

This commit is contained in:
Jonas Platte 2021-09-15 20:12:03 +02:00
parent 6b4f6ca45c
commit 4b2f0a936b
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67

View file

@ -28,7 +28,7 @@ use glib::ffi::gpointer;
use glib::prelude::*; use glib::prelude::*;
use glib::translate::*; use glib::translate::*;
#[derive(Debug, PartialEq, Eq)] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct PadProbeId(NonZeroU64); pub struct PadProbeId(NonZeroU64);
impl IntoGlib for PadProbeId { impl IntoGlib for PadProbeId {