Returns the number of elements in this segment.
(&self)
| 163 | |
| 164 | /// Returns the number of elements in this segment. |
| 165 | pub fn len(&self) -> u64 { |
| 166 | match self { |
| 167 | Self::Functions(s) => u64::try_from(s.len()).unwrap(), |
| 168 | Self::Expressions { exprs, .. } => u64::try_from(exprs.len()).unwrap(), |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | /// A translated WebAssembly module, excluding the function bodies and |
no test coverage detected