Returns the type of this segment.
(&self)
| 155 | impl TableSegmentElements { |
| 156 | /// Returns the type of this segment. |
| 157 | pub fn ty(&self) -> WasmRefType { |
| 158 | match self { |
| 159 | Self::Functions(_) => WasmRefType::FUNCREF, |
| 160 | Self::Expressions { ty, .. } => *ty, |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | /// Returns the number of elements in this segment. |
| 165 | pub fn len(&self) -> u64 { |
no outgoing calls
no test coverage detected