Skip to content

Commit ddc67e3

Browse files
committed
Remove Mask trait
1 parent 8cc38ae commit ddc67e3

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

crates/core_simd/src/masks.rs

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,6 @@ mod mask_impl;
1414

1515
use crate::{SimdI16, SimdI32, SimdI64, SimdI8, SimdIsize};
1616

17-
mod sealed {
18-
pub trait Sealed {}
19-
}
20-
21-
/// Helper trait for mask types.
22-
pub trait Mask: sealed::Sealed {
23-
/// The number of lanes for this mask.
24-
const LANES: usize;
25-
26-
/// Generates a mask with the same value in every lane.
27-
#[must_use]
28-
fn splat(val: bool) -> Self;
29-
}
30-
3117
macro_rules! define_opaque_mask {
3218
{
3319
$(#[$attr:meta])*
@@ -40,23 +26,6 @@ macro_rules! define_opaque_mask {
4026
where
4127
crate::LaneCount<LANES>: crate::SupportedLaneCount;
4228

43-
impl<const LANES: usize> sealed::Sealed for $name<LANES>
44-
where
45-
crate::LaneCount<LANES>: crate::SupportedLaneCount,
46-
{}
47-
48-
impl<const LANES: usize> Mask for $name<LANES>
49-
where
50-
crate::LaneCount<LANES>: crate::SupportedLaneCount,
51-
{
52-
const LANES: usize = LANES;
53-
54-
#[inline]
55-
fn splat(value: bool) -> Self {
56-
Self::splat(value)
57-
}
58-
}
59-
6029
impl_opaque_mask_reductions! { $name, $bits_ty }
6130

6231
impl<const LANES: usize> $name<LANES>

0 commit comments

Comments
 (0)