mod.rs
This file
Path
serde_derive/src/internals/mod.rs
28 lines · 395 bytes · Rust
Last changed by
Touch up PR 2879David Tolnaybefore adoption97168d3
History of this fileTake it
1pub mod ast;2pub mod attr;3pub mod name;45mod case;6mod check;7mod ctxt;8mod receiver;9mod respan;10mod symbol;1112use syn::Type;1314pub use self::ctxt::Ctxt;15pub use self::receiver::replace_receiver;1617#[derive(Copy, Clone)]18pub enum Derive {19 Serialize,20 Deserialize,21}2223pub fn ungroup(mut ty: &Type) -> &Type {24 while let Type::Group(group) = ty {25 ty = &group.elem;26 }27 ty28}