| Crates.io | derive_flat_debug |
| lib.rs | derive_flat_debug |
| version | 0.1.0 |
| created_at | 2025-06-01 06:13:47.288883+00 |
| updated_at | 2025-06-01 06:13:47.288883+00 |
| description | Derive macro for flatter enum debug output |
| homepage | https://github.com/cuppachino/derive_flat_debug |
| repository | https://github.com/cuppachino/derive_flat_debug |
| max_upload_size | |
| id | 1696914 |
| size | 12,385 |
This macro generates a custom Debug implementation for enums that:
#[debug(flatten)] is used.#[debug(skip)].Restrictions:
#[debug(skip)] and #[debug(flatten)] cannot be used together on the same variantExample usage:
#[derive(DebugFlat, PartialEq)]
pub enum QueryToken {
#[debug(flatten)] Group(Molecule),
Molecule(Molecule),
Atom(Atom),
#[debug(skip)] Infix(Infix),
#[debug(skip)] Postfix(Postfix),
Filter(Filter),
}
#[derive(Debug, PartialEq)]
pub struct Molecule(pub Vec<QueryToken>);