Skip to content

Commit 62d3b2e

Browse files
committed
Add Copy bound to SIMD traits
1 parent 528bc85 commit 62d3b2e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/core_simd/src/elements/float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::simd::{
55
};
66

77
/// Operations on SIMD vectors of floats.
8-
pub trait SimdFloat: Sized + Sealed {
8+
pub trait SimdFloat: Copy + Sealed {
99
/// Mask type used for manipulating this SIMD vector type.
1010
type Mask;
1111

crates/core_simd/src/elements/int.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::simd::{
44
};
55

66
/// Operations on SIMD vectors of signed integers.
7-
pub trait SimdInt: Sized + Sealed {
7+
pub trait SimdInt: Copy + Sealed {
88
/// Mask type used for manipulating this SIMD vector type.
99
type Mask;
1010

crates/core_simd/src/elements/uint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::sealed::Sealed;
22
use crate::simd::{intrinsics, LaneCount, Simd, SupportedLaneCount};
33

44
/// Operations on SIMD vectors of unsigned integers.
5-
pub trait SimdUint: Sized + Sealed {
5+
pub trait SimdUint: Copy + Sealed {
66
/// Scalar type contained by this SIMD vector type.
77
type Scalar;
88

0 commit comments

Comments
 (0)