1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::*; #[derive(Clone, Debug)] pub enum Fields { /// E.g.: `struct Foo { a: usize, b: String }` Named { fields: Vec<(&'static str, Field)> }, /// E.g.: `struct Foo(usize, String);` Unnamed { fields: Vec<Field> }, /// E.g.: `struct Foo;` Unit, }