(&self)
| 155 | } |
| 156 | |
| 157 | fn defstruct(&self) { |
| 158 | let name = &self.ts.name; |
| 159 | let feature = &self.ts.feature; |
| 160 | let inner_type = &self.ts.inner_type; |
| 161 | let part = quote!( |
| 162 | /// Fixed non-negative integer type. |
| 163 | #[cfg(feature = #feature)] |
| 164 | #[derive(Clone)] |
| 165 | pub struct #name(pub #inner_type); |
| 166 | ); |
| 167 | self.attach_uint(part); |
| 168 | } |
| 169 | |
| 170 | fn deferror(&self) { |
| 171 | let error_name = &self.ts.error_name; |