mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
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::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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -54,6 +54,7 @@ impl Element {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
||||
pub enum ElementMessageType {
|
||||
Error,
|
||||
Warning,
|
||||
|
|
|
@ -663,6 +663,7 @@ impl<'a> glib::types::StaticType for List<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
|
||||
pub enum ValueOrder {
|
||||
LessThan,
|
||||
Equal,
|
||||
|
|
Loading…
Reference in a new issue