Changes Document::len to Document::top_level_fields_count

This commit is contained in:
Louis Dureuil 2024-11-21 15:00:31 +01:00
parent 4ed195426c
commit 32bcacefd5
No known key found for this signature in database
2 changed files with 24 additions and 13 deletions

View file

@ -160,7 +160,7 @@ impl<'doc, D: DocumentTrait<'doc> + Debug> ObjectView for ParseableDocument<'doc
}
fn size(&self) -> i64 {
self.document.len() as i64
self.document.top_level_fields_count() as i64
}
fn keys<'k>(&'k self) -> Box<dyn Iterator<Item = KStringCow<'k>> + 'k> {