File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,13 @@ pub mod ct {
102
102
use str;
103
103
use vec;
104
104
105
+ #[ deriving_eq]
105
106
pub enum Signedness { Signed , Unsigned , }
106
107
108
+ #[ deriving_eq]
107
109
pub enum Caseness { CaseUpper , CaseLower , }
108
110
111
+ #[ deriving_eq]
109
112
pub enum Ty {
110
113
TyBool ,
111
114
TyStr ,
@@ -118,6 +121,7 @@ pub mod ct {
118
121
TyPoly ,
119
122
}
120
123
124
+ #[ deriving_eq]
121
125
pub enum Flag {
122
126
FlagLeftJustify ,
123
127
FlagLeftZeroPad ,
@@ -126,13 +130,15 @@ pub mod ct {
126
130
FlagAlternate ,
127
131
}
128
132
133
+ #[ deriving_eq]
129
134
pub enum Count {
130
135
CountIs ( uint ) ,
131
136
CountIsParam ( uint ) ,
132
137
CountIsNextParam ,
133
138
CountImplied ,
134
139
}
135
140
141
+ #[ deriving_eq]
136
142
struct Parsed < T > {
137
143
val : T ,
138
144
next : uint
@@ -145,6 +151,7 @@ pub mod ct {
145
151
}
146
152
147
153
// A formatted conversion from an expression to a string
154
+ #[ deriving_eq]
148
155
pub struct Conv {
149
156
param : Option < uint > ,
150
157
flags : ~[ Flag ] ,
@@ -154,6 +161,7 @@ pub mod ct {
154
161
}
155
162
156
163
// A fragment of the output sequence
164
+ #[ deriving_eq]
157
165
pub enum Piece { PieceString ( ~str ) , PieceConv ( Conv ) , }
158
166
159
167
pub type ErrorFn = @fn ( & str ) -> !;
You can’t perform that action at this time.
0 commit comments