Searches for a field by name, returning it along with its index if found
(&self, name: &str)
| 80 | |
| 81 | /// Searches for a field by name, returning it along with its index if found |
| 82 | pub fn find(&self, name: &str) -> Option<(usize, &FieldRef)> { |
| 83 | self.0.iter().enumerate().find(|(_, b)| b.name() == name) |
| 84 | } |
| 85 | |
| 86 | /// Check to see if `self` is a superset of `other` |
| 87 | /// |