Add missing safety comment
This commit is contained in:
parent
4076ba8a77
commit
6b3c599ba2
1 changed files with 4 additions and 0 deletions
|
|
@ -741,11 +741,15 @@ unsafe impl SimdElement for f64 {
|
|||
}
|
||||
|
||||
impl<T> Sealed for *const T {}
|
||||
|
||||
// Safety: const pointers are valid SIMD element types, and are supported by this API
|
||||
unsafe impl<T> SimdElement for *const T {
|
||||
type Mask = isize;
|
||||
}
|
||||
|
||||
impl<T> Sealed for *mut T {}
|
||||
|
||||
// Safety: mut pointers are valid SIMD element types, and are supported by this API
|
||||
unsafe impl<T> SimdElement for *mut T {
|
||||
type Mask = isize;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue