summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-03-28 14:27:26 +0100
committerHampusM <hampus@hampusmat.com>2025-03-28 14:27:26 +0100
commite66b34a0cd2de0c5918ee4bf5890feaaca2342fe (patch)
treebe154ccc98a20039abbd5923ed784189d2600905 /src
parente71c96e85eeb1878909bb081b3f418ed266ace93 (diff)
feat: add field_cnt function
Diffstat (limited to 'src')
-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