File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/core_simd/src/masks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -121,17 +121,17 @@ where
121
121
122
122
#[ inline]
123
123
#[ must_use = "method returns a new array and does not mutate the original value" ]
124
- pub fn to_bitmask_array < const N : usize > ( self ) -> [ u8 ; N ] {
125
- assert ! ( core:: mem:: size_of:: <Self >( ) == N ) ;
124
+ pub fn to_bitmask_array < const M : usize > ( self ) -> [ u8 ; M ] {
125
+ assert ! ( core:: mem:: size_of:: <Self >( ) == M ) ;
126
126
127
127
// Safety: converting an integer to an array of bytes of the same size is safe
128
128
unsafe { core:: mem:: transmute_copy ( & self . 0 ) }
129
129
}
130
130
131
131
#[ inline]
132
132
#[ must_use = "method returns a new mask and does not mutate the original value" ]
133
- pub fn from_bitmask_array < const N : usize > ( bitmask : [ u8 ; N ] ) -> Self {
134
- assert ! ( core:: mem:: size_of:: <Self >( ) == N ) ;
133
+ pub fn from_bitmask_array < const M : usize > ( bitmask : [ u8 ; M ] ) -> Self {
134
+ assert ! ( core:: mem:: size_of:: <Self >( ) == M ) ;
135
135
136
136
// Safety: converting an array of bytes to an integer of the same size is safe
137
137
Self ( unsafe { core:: mem:: transmute_copy ( & bitmask) } , PhantomData )
You can’t perform that action at this time.
0 commit comments