pub fn underlying_numeric_type<'d, F>(ty: &Type, lookup: F) -> Option<Type>where F: Fn(&str) -> Option<&'d Definition>,