Derive more useful traits for various enums

This commit is contained in:
Sebastian Dröge 2017-11-26 23:50:39 +02:00
parent 80ebc86e94
commit 34f70ee0d7
4 changed files with 4 additions and 2 deletions

View file

@ -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,

View file

@ -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,

View file

@ -54,6 +54,7 @@ impl Element {
}
}
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
pub enum ElementMessageType {
Error,
Warning,

View file

@ -663,6 +663,7 @@ impl<'a> glib::types::StaticType for List<'a> {
}
}
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
pub enum ValueOrder {
LessThan,
Equal,