diff options
| author | HampusM <hampus@hampusmat.com> | 2025-03-28 14:27:26 +0100 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2025-03-28 14:27:26 +0100 | 
| commit | e66b34a0cd2de0c5918ee4bf5890feaaca2342fe (patch) | |
| tree | be154ccc98a20039abbd5923ed784189d2600905 /src | |
| parent | e71c96e85eeb1878909bb081b3f418ed266ace93 (diff) | |
feat: add field_cnt function
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
| @@ -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 | 
