(&self, f: &mut Formatter)
| 420 | |
| 421 | impl Display for Type { |
| 422 | fn fmt(&self, f: &mut Formatter) -> fmt::Result { |
| 423 | if self.is_int() { |
| 424 | write!(f, "i{}", self.lane_bits()) |
| 425 | } else if self.is_float() { |
| 426 | write!(f, "f{}", self.lane_bits()) |
| 427 | } else if self.is_vector() { |
| 428 | write!(f, "{}x{}", self.lane_type(), self.lane_count()) |
| 429 | } else if self.is_dynamic_vector() { |
| 430 | write!(f, "{:?}x{}xN", self.lane_type(), self.min_lane_count()) |
| 431 | } else { |
| 432 | match *self { |
| 433 | INVALID => panic!("INVALID encountered"), |
| 434 | _ => panic!("Unknown Type(0x{:x})", self.0), |
| 435 | } |
| 436 | } |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | impl Debug for Type { |
nothing calls this directly
no test coverage detected