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