(&self)
| 43 | |
| 44 | impl TypeDef { |
| 45 | pub fn to_string(&self) -> String { |
| 46 | let mut res = String::from(""); |
| 47 | if let Some(name) = &self.name { |
| 48 | res.push_str(&name); |
| 49 | } |
| 50 | for nested in &self.nested_types { |
| 51 | res.push_str(&format!("_{}", &nested.to_string())); |
| 52 | } |
| 53 | res |
| 54 | } |
| 55 | |
| 56 | pub fn get_nested_types(&self) -> Vec<TypeDef> { |
| 57 | let mut types = vec![]; |
no outgoing calls