forked from mirrors/gstreamer-rs
Derive more useful traits for various enums
This commit is contained in:
parent
80ebc86e94
commit
34f70ee0d7
4 changed files with 4 additions and 2 deletions
|
@ -17,7 +17,7 @@ use std::str;
|
||||||
use glib;
|
use glib;
|
||||||
use glib::translate::{from_glib, FromGlib, FromGlibPtrNone, ToGlib, ToGlibPtr, ToGlibPtrMut};
|
use glib::translate::{from_glib, FromGlib, FromGlibPtrNone, ToGlib, ToGlibPtr, ToGlibPtrMut};
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Debug)]
|
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
||||||
pub enum AudioEndianness {
|
pub enum AudioEndianness {
|
||||||
Unknown,
|
Unknown,
|
||||||
LittleEndian = 1234,
|
LittleEndian = 1234,
|
||||||
|
|
|
@ -14,7 +14,7 @@ use std::str;
|
||||||
|
|
||||||
use glib::translate::{from_glib, FromGlib, ToGlib, ToGlibPtr};
|
use glib::translate::{from_glib, FromGlib, ToGlib, ToGlibPtr};
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Debug)]
|
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
||||||
pub enum VideoEndianness {
|
pub enum VideoEndianness {
|
||||||
Unknown,
|
Unknown,
|
||||||
LittleEndian = 1234,
|
LittleEndian = 1234,
|
||||||
|
|
|
@ -54,6 +54,7 @@ impl Element {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
||||||
pub enum ElementMessageType {
|
pub enum ElementMessageType {
|
||||||
Error,
|
Error,
|
||||||
Warning,
|
Warning,
|
||||||
|
|
|
@ -663,6 +663,7 @@ impl<'a> glib::types::StaticType for List<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
||||||
pub enum ValueOrder {
|
pub enum ValueOrder {
|
||||||
LessThan,
|
LessThan,
|
||||||
Equal,
|
Equal,
|
||||||
|
|
Loading…
Reference in a new issue