eq for images/sounds

png-branch
an 2019-03-13 11:40:12 -04:00
parent 7affb73f95
commit 93e6119604
4 changed files with 7 additions and 7 deletions

View File

@ -178,7 +178,7 @@ pub struct Color8(u8, u8, u8);
/// An RGB16 image.
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub struct Image16
{
w: usize,
@ -190,7 +190,7 @@ pub struct Image16
/// An RGB8 image.
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub struct Image8
{
w: usize,

View File

@ -83,7 +83,7 @@ impl Sound for Sound16
/// A 16-bit PCM stream.
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub struct Sound16
{
rate: u16,

View File

@ -124,7 +124,7 @@ pub fn read_sounds(b: &[u8]) -> ResultS<Vec<SoundTable>>
}
/// A sound definition containing one, many or no sounds.
#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub struct SoundDef
{
/// The volume type for this sound.

View File

@ -135,7 +135,7 @@ pub fn read_wad(b: &[u8]) -> ResultS<Wad>
/// Any kind of chunk in an `Entry`.
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub enum Chunk
{
/// A `PICT` chunk.
@ -187,7 +187,7 @@ pub enum Chunk
/// An entry containing chunks and application-specific data.
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub struct Entry
{
/// All of the chunks in this `Entry`.
@ -199,7 +199,7 @@ pub struct Entry
/// A Map file containing entries.
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
#[derive(Debug)]
#[derive(Debug, Eq, PartialEq)]
pub struct Wad
{
/// The original name of this file.