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