(fmt: &mut Formatter)
| 384 | } |
| 385 | |
| 386 | fn gen_hash_key(fmt: &mut Formatter) { |
| 387 | fmt.add_block("impl Flags", |fmt| { |
| 388 | fmt.doc_comment("Get the flag values as raw bytes for hashing."); |
| 389 | fmt.add_block("pub fn hash_key(&self) -> &[u8]", |fmt| { |
| 390 | fmtln!(fmt, "&self.bytes"); |
| 391 | }); |
| 392 | }); |
| 393 | } |
| 394 | |
| 395 | fn gen_group(group: &SettingGroup, parent: ParentGroup, fmt: &mut Formatter) { |
| 396 | // Generate struct. |
no test coverage detected