Retrieve the fields of this `record` in declaration order.
(&self)
| 386 | |
| 387 | /// Retrieve the fields of this `record` in declaration order. |
| 388 | pub fn fields(&self) -> impl ExactSizeIterator<Item = Field<'_>> { |
| 389 | self.0.types[self.0.index].fields.iter().map(|field| Field { |
| 390 | name: &field.name, |
| 391 | ty: Type::from(&field.ty, &self.0.instance()), |
| 392 | }) |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | impl PartialEq for Record { |
no test coverage detected