Get the type of a comparison result for the given type. For vectors this will be a vector with the same number of lanes and integer elements, and for scalar types this will be `i8`, which is the result type of comparisons.
(self)
| 148 | /// with the same number of lanes and integer elements, and for scalar types this will be `i8`, |
| 149 | /// which is the result type of comparisons. |
| 150 | pub fn as_truthy(self) -> Self { |
| 151 | if !self.is_vector() { |
| 152 | I8 |
| 153 | } else { |
| 154 | self.as_truthy_pedantic() |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | /// Get a type with the same number of lanes as this type, but with the lanes replaced by |
| 159 | /// integers of the same size. |
no test coverage detected