mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 14:12:31 +00:00
Make tags Clone
This commit is contained in:
parent
76ee2a55af
commit
9e8a04826b
10 changed files with 11 additions and 11 deletions
|
@ -5,7 +5,7 @@ use crate::types::tag::TagType;
|
|||
|
||||
use std::convert::TryFrom;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
/// Represents an `APE` tag item
|
||||
///
|
||||
/// The restrictions for `APE` lie in the key rather than the value,
|
||||
|
|
|
@ -46,7 +46,7 @@ macro_rules! impl_accessor {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, PartialEq)]
|
||||
#[derive(Default, Debug, PartialEq, Clone)]
|
||||
/// An `APE` tag
|
||||
///
|
||||
/// ## Supported file types
|
||||
|
|
|
@ -25,7 +25,7 @@ macro_rules! impl_accessor {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, PartialEq)]
|
||||
#[derive(Default, Debug, PartialEq, Clone)]
|
||||
/// An ID3v1 tag
|
||||
///
|
||||
/// ID3v1 is a severely limited format, with each field
|
||||
|
|
|
@ -54,7 +54,7 @@ macro_rules! impl_accessor {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Debug)]
|
||||
#[derive(PartialEq, Debug, Clone)]
|
||||
/// An `ID3v2` tag
|
||||
///
|
||||
/// ## Supported file types
|
||||
|
|
|
@ -10,7 +10,7 @@ use std::io::{Read, Seek, SeekFrom, Write};
|
|||
use byteorder::BigEndian;
|
||||
|
||||
#[cfg(feature = "aiff_text_chunks")]
|
||||
#[derive(Default)]
|
||||
#[derive(Default, Clone, Debug, PartialEq)]
|
||||
/// `AIFF` text chunks
|
||||
///
|
||||
/// ## Supported file types
|
||||
|
|
|
@ -29,7 +29,7 @@ macro_rules! impl_accessor {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, PartialEq)]
|
||||
#[derive(Default, Debug, PartialEq, Clone)]
|
||||
/// A RIFF INFO LIST
|
||||
///
|
||||
/// ## Supported file types
|
||||
|
|
|
@ -4,7 +4,7 @@ use std::io::{Read, Seek, SeekFrom};
|
|||
|
||||
use byteorder::{BigEndian, ReadBytesExt};
|
||||
|
||||
#[derive(Eq, PartialEq, Debug)]
|
||||
#[derive(Eq, PartialEq, Debug, Clone)]
|
||||
/// Represents an `MP4` atom identifier
|
||||
pub enum AtomIdent {
|
||||
/// A four byte identifier
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::logic::mp4::AtomIdent;
|
||||
use crate::types::picture::Picture;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
/// Represents an `MP4` atom
|
||||
pub struct Atom {
|
||||
pub(crate) ident: AtomIdent,
|
||||
|
@ -25,7 +25,7 @@ impl Atom {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
/// The data of an atom
|
||||
///
|
||||
/// NOTES:
|
||||
|
|
|
@ -49,7 +49,7 @@ macro_rules! impl_accessor {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default, PartialEq, Debug)]
|
||||
#[derive(Default, PartialEq, Debug, Clone)]
|
||||
/// An MP4 ilst atom
|
||||
///
|
||||
/// ## Supported file types
|
||||
|
|
|
@ -31,7 +31,7 @@ macro_rules! impl_accessor {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default, PartialEq, Debug)]
|
||||
#[derive(Default, PartialEq, Debug, Clone)]
|
||||
/// Vorbis comments
|
||||
pub struct VorbisComments {
|
||||
/// An identifier for the encoding software
|
||||
|
|
Loading…
Reference in a new issue