(&self)
| 101 | /// Number of indexed fields. |
| 102 | #[inline] |
| 103 | pub fn len(&self) -> usize { |
| 104 | match &self.inner { |
| 105 | IndexInner::Flat(entries) => entries.len(), |
| 106 | IndexInner::Map(map) => map.len(), |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | /// Whether the index is empty. |
| 111 | #[inline] |
no outgoing calls