File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ macro_rules! impl_minimal_iuf {
53
53
54
54
/// Extracts the value at `index`.
55
55
///
56
- /// # Precondition
56
+ /// # Safety
57
57
///
58
58
/// If `index >= Self::lanes()` the behavior is undefined.
59
59
#[ inline]
@@ -80,7 +80,7 @@ macro_rules! impl_minimal_iuf {
80
80
81
81
/// Returns a new vector where the value at `index` is replaced by `new_value`.
82
82
///
83
- /// # Precondition
83
+ /// # Safety
84
84
///
85
85
/// If `index >= Self::lanes()` the behavior is undefined.
86
86
#[ inline]
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ macro_rules! impl_minimal_mask {
58
58
59
59
/// Extracts the value at `index`.
60
60
///
61
+ /// # Safety
62
+ ///
61
63
/// If `index >= Self::lanes()` the behavior is undefined.
62
64
#[ inline]
63
65
pub unsafe fn extract_unchecked( self , index: usize ) -> bool {
@@ -85,9 +87,9 @@ macro_rules! impl_minimal_mask {
85
87
/// Returns a new vector where the value at `index` is replaced by
86
88
/// `new_value`.
87
89
///
88
- /// # Panics
90
+ /// # Safety
89
91
///
90
- /// If `index >= Self::lanes()`.
92
+ /// If `index >= Self::lanes()` the behavior is undefined .
91
93
#[ inline]
92
94
#[ must_use = "replace_unchecked does not modify the original value - \
93
95
it returns a new vector with the value at `index` \
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ macro_rules! impl_slice_from_slice {
38
38
39
39
/// Instantiates a new vector with the values of the `slice`.
40
40
///
41
- /// # Precondition
41
+ /// # Safety
42
42
///
43
43
/// If `slice.len() < Self::lanes()` or `&slice[0]` is not aligned
44
44
/// to an `align_of::<Self>()` boundary, the behavior is undefined.
@@ -59,7 +59,7 @@ macro_rules! impl_slice_from_slice {
59
59
60
60
/// Instantiates a new vector with the values of the `slice`.
61
61
///
62
- /// # Precondition
62
+ /// # Safety
63
63
///
64
64
/// If `slice.len() < Self::lanes()` the behavior is undefined.
65
65
#[ inline]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ macro_rules! impl_slice_write_to_slice {
39
39
40
40
/// Writes the values of the vector to the `slice`.
41
41
///
42
- /// # Precondition
42
+ /// # Safety
43
43
///
44
44
/// If `slice.len() < Self::lanes()` or `&slice[0]` is not
45
45
/// aligned to an `align_of::<Self>()` boundary, the behavior is
@@ -64,7 +64,7 @@ macro_rules! impl_slice_write_to_slice {
64
64
65
65
/// Writes the values of the vector to the `slice`.
66
66
///
67
- /// # Precondition
67
+ /// # Safety
68
68
///
69
69
/// If `slice.len() < Self::lanes()` the behavior is undefined.
70
70
#[ inline]
You can’t perform that action at this time.
0 commit comments