We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ad779c commit a2dd4a3Copy full SHA for a2dd4a3
crates/core_simd/src/lib.rs
@@ -1,6 +1,5 @@
1
#![no_std]
2
#![feature(
3
- core_intrinsics,
4
const_intrinsic_copy,
5
const_refs_to_cell,
6
const_maybe_uninit_as_mut_ptr,
crates/core_simd/src/masks.rs
@@ -33,7 +33,7 @@ mod sealed {
33
34
fn eq(self, other: Self) -> bool;
35
36
- fn as_usize(self) -> usize;
+ fn to_usize(self) -> usize;
37
38
type Unsigned: SimdElement;
39
@@ -65,7 +65,7 @@ macro_rules! impl_element {
65
fn eq(self, other: Self) -> bool { self == other }
66
67
#[inline]
68
- fn as_usize(self) -> usize {
+ fn to_usize(self) -> usize {
69
self as usize
70
}
71
@@ -394,7 +394,7 @@ where
394
if min_index.eq(T::TRUE) {
395
None
396
} else {
397
- Some(min_index.as_usize())
+ Some(min_index.to_usize())
398
399
400
0 commit comments