@@ -64,13 +64,15 @@ pub struct SndInfo {
64
64
/// * Read - Read only mode
65
65
/// * Write - Write only mode
66
66
/// * ReadWrite - Read and Write mode
67
+ #[ deriving( Copy ) ]
67
68
pub enum OpenMode {
68
69
Read = ffi:: SFM_READ as int ,
69
70
Write = ffi:: SFM_WRITE as int ,
70
71
ReadWrite = ffi:: SFM_RDWR as int
71
72
}
72
73
73
74
/// Type of strings available for method get_string()
75
+ #[ deriving( Copy ) ]
74
76
pub enum StringSoundType {
75
77
Title = ffi:: SF_STR_TITLE as int ,
76
78
Copyright = ffi:: SF_STR_COPYRIGHT as int ,
@@ -86,6 +88,7 @@ pub enum StringSoundType {
86
88
87
89
/// Types of error who can be return by API functions
88
90
#[ repr( C ) ]
91
+ #[ deriving( Copy ) ]
89
92
pub enum Error {
90
93
NoError = ffi:: SF_ERR_NO_ERROR as int ,
91
94
UnrecognizedFormat = ffi:: SF_ERR_UNRECOGNISED_FORMAT as int ,
@@ -100,6 +103,7 @@ pub enum Error {
100
103
/// * SeekSet - The offset is set to the start of the audio data plus offset (multichannel) frames.
101
104
/// * SeekCur - The offset is set to its current location plus offset (multichannel) frames.
102
105
/// * SeekEnd - The offset is set to the end of the data plus offset (multichannel) frames.
106
+ #[ deriving( Copy ) ]
103
107
pub enum SeekMode {
104
108
SeekSet = ffi:: SEEK_SET as int ,
105
109
SeekCur = ffi:: SEEK_CUR as int ,
@@ -161,7 +165,7 @@ pub enum SeekMode {
161
165
/// * EndianBig - Force big endian-ness
162
166
/// * EndianCpu - Force CPU endian-ness
163
167
#[ repr( C ) ]
164
- #[ deriving( Show , Clone , PartialOrd , PartialEq ) ]
168
+ #[ deriving( Show , Clone , PartialOrd , PartialEq , Copy ) ]
165
169
pub enum FormatType {
166
170
FormatWav = ffi:: SF_FORMAT_WAV as int ,
167
171
FormatAiff = ffi:: SF_FORMAT_AIFF as int ,
0 commit comments