Returns the signature return count.
(&self)
| 144 | |
| 145 | /// Returns the signature return count. |
| 146 | pub fn return_count(&self) -> usize { |
| 147 | match &self.ty { |
| 148 | BlockType::Void => 0, |
| 149 | BlockType::Single(_) => 1, |
| 150 | BlockType::Func(f) => f.results().len(), |
| 151 | BlockType::ABISig(sig) => sig.results().len(), |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | impl BlockType { |
no test coverage detected