@@ -180,7 +180,6 @@ pub struct FormatPlaceholder {
180
180
#[ visitable( ignore) ]
181
181
pub format_trait : FormatTrait ,
182
182
/// `{}` or `{:.5}` or `{:-^20}`, etc.
183
- #[ visitable( ignore) ]
184
183
pub format_options : FormatOptions ,
185
184
}
186
185
@@ -229,23 +228,26 @@ pub enum FormatTrait {
229
228
UpperHex ,
230
229
}
231
230
232
- #[ derive( Clone , Encodable , Decodable , Default , Debug , PartialEq , Eq ) ]
231
+ #[ derive( Clone , Encodable , Decodable , Default , Debug , PartialEq , Eq , Walkable ) ]
233
232
pub struct FormatOptions {
234
233
/// The width. E.g. `{:5}` or `{:width$}`.
235
234
pub width : Option < FormatCount > ,
236
235
/// The precision. E.g. `{:.5}` or `{:.precision$}`.
237
236
pub precision : Option < FormatCount > ,
238
237
/// The alignment. E.g. `{:>}` or `{:<}` or `{:^}`.
238
+ #[ visitable( ignore) ]
239
239
pub alignment : Option < FormatAlignment > ,
240
240
/// The fill character. E.g. the `.` in `{:.>10}`.
241
241
pub fill : Option < char > ,
242
242
/// The `+` or `-` flag.
243
+ #[ visitable( ignore) ]
243
244
pub sign : Option < FormatSign > ,
244
245
/// The `#` flag.
245
246
pub alternate : bool ,
246
247
/// The `0` flag. E.g. the `0` in `{:02x}`.
247
248
pub zero_pad : bool ,
248
249
/// The `x` or `X` flag (for `Debug` only). E.g. the `x` in `{:x?}`.
250
+ #[ visitable( ignore) ]
249
251
pub debug_hex : Option < FormatDebugHex > ,
250
252
}
251
253
@@ -275,7 +277,7 @@ pub enum FormatAlignment {
275
277
Center ,
276
278
}
277
279
278
- #[ derive( Clone , Encodable , Decodable , Debug , PartialEq , Eq ) ]
280
+ #[ derive( Clone , Encodable , Decodable , Debug , PartialEq , Eq , Walkable ) ]
279
281
pub enum FormatCount {
280
282
/// `{:5}` or `{:.5}`
281
283
Literal ( u16 ) ,
0 commit comments