summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1d52d91..9e25467 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -279,6 +279,12 @@ impl MultiVec
self.length
}
+ /// Returns how many fields each item in this `MultiVec` has.
+ pub fn field_cnt(&self) -> usize
+ {
+ self.field_arr_byte_offsets.len()
+ }
+
/// Returns how many items this `MultiVec` has capacity for.
#[must_use]
pub fn capacity(&self) -> usize