Get a type with the same number of lanes as this type, but with the lanes replaced by integers of the same size.
(self)
| 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. |
| 160 | pub fn as_int(self) -> Self { |
| 161 | self.replace_lanes(match self.lane_type() { |
| 162 | I8 => I8, |
| 163 | I16 | F16 => I16, |
| 164 | I32 | F32 => I32, |
| 165 | I64 | F64 => I64, |
| 166 | I128 | F128 => I128, |
| 167 | _ => unimplemented!(), |
| 168 | }) |
| 169 | } |
| 170 | |
| 171 | /// Get a type with the same number of lanes as this type, but with lanes that are half the |
| 172 | /// number of bits. |
no test coverage detected