Returns the signature param count.
(&self)
| 135 | |
| 136 | /// Returns the signature param count. |
| 137 | pub fn param_count(&self) -> usize { |
| 138 | match &self.ty { |
| 139 | BlockType::Void | BlockType::Single(_) => 0, |
| 140 | BlockType::Func(f) => f.params().len(), |
| 141 | BlockType::ABISig(sig) => sig.params_without_retptr().len(), |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /// Returns the signature return count. |
| 146 | pub fn return_count(&self) -> usize { |
no test coverage detected