1 | pub mod ast; |
---|---|
2 | pub mod attr; |
3 | |
4 | mod case; |
5 | mod check; |
6 | mod ctxt; |
7 | mod receiver; |
8 | mod respan; |
9 | mod symbol; |
10 | |
11 | use syn::Type; |
12 | |
13 | pub use self::ctxt::Ctxt; |
14 | pub use self::receiver::replace_receiver; |
15 | |
16 | #[derive(Copy, Clone)] |
17 | pub enum Derive { |
18 | Serialize, |
19 | Deserialize, |
20 | } |
21 | |
22 | pub fn ungroup(mut ty: &Type) -> &Type { |
23 | while let Type::Group(group) = ty { |
24 | ty = &group.elem; |
25 | } |
26 | ty |
27 | } |
28 |