diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2021-08-07 01:17:27 +0000 |
|---|---|---|
| committer | Caleb Zulawski <caleb.zulawski@gmail.com> | 2021-08-07 01:17:27 +0000 |
| commit | ddc67e3bf22fe1e79604e5fa0ee2836c87e20b20 (patch) | |
| tree | 994348821bb906936529a1c22b001546171f3eba | |
| parent | 8cc38ae292b1dbc27713cd8e267fa9b4d32c12b9 (diff) | |
| download | rust-ddc67e3bf22fe1e79604e5fa0ee2836c87e20b20.tar.gz rust-ddc67e3bf22fe1e79604e5fa0ee2836c87e20b20.zip | |
Remove Mask trait
| -rw-r--r-- | crates/core_simd/src/masks.rs | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/crates/core_simd/src/masks.rs b/crates/core_simd/src/masks.rs index ba7da704f61..3bb444062ab 100644 --- a/crates/core_simd/src/masks.rs +++ b/crates/core_simd/src/masks.rs @@ -14,20 +14,6 @@ mod mask_impl; use crate::{SimdI16, SimdI32, SimdI64, SimdI8, SimdIsize}; -mod sealed { - pub trait Sealed {} -} - -/// Helper trait for mask types. -pub trait Mask: sealed::Sealed { - /// The number of lanes for this mask. - const LANES: usize; - - /// Generates a mask with the same value in every lane. - #[must_use] - fn splat(val: bool) -> Self; -} - macro_rules! define_opaque_mask { { $(#[$attr:meta])* @@ -40,23 +26,6 @@ macro_rules! define_opaque_mask { where crate::LaneCount<LANES>: crate::SupportedLaneCount; - impl<const LANES: usize> sealed::Sealed for $name<LANES> - where - crate::LaneCount<LANES>: crate::SupportedLaneCount, - {} - - impl<const LANES: usize> Mask for $name<LANES> - where - crate::LaneCount<LANES>: crate::SupportedLaneCount, - { - const LANES: usize = LANES; - - #[inline] - fn splat(value: bool) -> Self { - Self::splat(value) - } - } - impl_opaque_mask_reductions! { $name, $bits_ty } impl<const LANES: usize> $name<LANES> |
