diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -170,6 +170,14 @@ impl MultiVec if self.capacity != 0 { assert_eq!(fields.as_ref().len(), self.field_cnt()); + assert!(fields + .as_ref() + .iter() + .zip(self.get_field_metadata().unwrap()) + .all(|(item_field, field_metadata)| { + item_field.id() == field_metadata.type_id + })); + if self.capacity == self.length { self.grow_amortized(1, &fields); } |