We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af53b5d commit 98cd636Copy full SHA for 98cd636
crates/core_simd/src/masks.rs
@@ -181,6 +181,13 @@ where
181
self.0.to_int()
182
}
183
184
+ /// Converts the mask to a mask of any other lane size.
185
+ #[inline]
186
+ #[must_use = "method returns a new mask and does not mutate the original value"]
187
+ pub fn cast<U: MaskElement>(self) -> Mask<U, LANES> {
188
+ Mask(self.0.convert())
189
+ }
190
+
191
/// Tests the value of the specified lane.
192
///
193
/// # Safety
0 commit comments