Get the lane type of this SIMD vector type. A lane type is the same as a SIMD vector type with one lane, so it returns itself.
(self)
| 38 | /// |
| 39 | /// A lane type is the same as a SIMD vector type with one lane, so it returns itself. |
| 40 | pub fn lane_type(self) -> Self { |
| 41 | if self.0 < constants::VECTOR_BASE { |
| 42 | self |
| 43 | } else { |
| 44 | Self(constants::LANE_BASE | (self.0 & 0x0f)) |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /// The type transformation that returns the lane type of a type variable; it is just a |
| 49 | /// renaming of lane_type() to be used in context where we think in terms of type variable |
no outgoing calls
no test coverage detected