diff --git a/gstreamer-audio/src/audio_format_info.rs b/gstreamer-audio/src/audio_format_info.rs index 05de0e664..7c6b0a7d8 100644 --- a/gstreamer-audio/src/audio_format_info.rs +++ b/gstreamer-audio/src/audio_format_info.rs @@ -17,7 +17,7 @@ use std::str; use glib; use glib::translate::{from_glib, FromGlib, FromGlibPtrNone, ToGlib, ToGlibPtr, ToGlibPtrMut}; -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] pub enum AudioEndianness { Unknown, LittleEndian = 1234, diff --git a/gstreamer-video/src/video_format.rs b/gstreamer-video/src/video_format.rs index bb630c106..455c2bf5d 100644 --- a/gstreamer-video/src/video_format.rs +++ b/gstreamer-video/src/video_format.rs @@ -14,7 +14,7 @@ use std::str; use glib::translate::{from_glib, FromGlib, ToGlib, ToGlibPtr}; -#[derive(PartialEq, Eq, Debug)] +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] pub enum VideoEndianness { Unknown, LittleEndian = 1234, diff --git a/gstreamer/src/element.rs b/gstreamer/src/element.rs index 38d853b86..f6f0f405a 100644 --- a/gstreamer/src/element.rs +++ b/gstreamer/src/element.rs @@ -54,6 +54,7 @@ impl Element { } } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] pub enum ElementMessageType { Error, Warning, diff --git a/gstreamer/src/value.rs b/gstreamer/src/value.rs index 0dbe85d2d..4e6f74eca 100644 --- a/gstreamer/src/value.rs +++ b/gstreamer/src/value.rs @@ -663,6 +663,7 @@ impl<'a> glib::types::StaticType for List<'a> { } } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] pub enum ValueOrder { LessThan, Equal,