Skip to content

Commit 8cc38ae

Browse files
committed
Remove Vector trait
1 parent dc4dc99 commit 8cc38ae

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

crates/core_simd/src/vector.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -400,39 +400,3 @@ impl Sealed for f64 {}
400400
unsafe impl SimdElement for f64 {
401401
type Mask = i64;
402402
}
403-
404-
/// A representation of a vector as an "array" with indices, implementing
405-
/// operations applicable to any vector type based solely on "having lanes",
406-
/// and describing relationships between vector and scalar types.
407-
pub trait Vector: sealed::Sealed {
408-
/// The scalar type in every lane of this vector type.
409-
type Scalar: Copy + Sized;
410-
411-
/// The number of lanes for this vector.
412-
const LANES: usize;
413-
414-
/// Generates a SIMD vector with the same value in every lane.
415-
#[must_use]
416-
fn splat(val: Self::Scalar) -> Self;
417-
}
418-
419-
impl<Element, const LANES: usize> Sealed for Simd<Element, LANES>
420-
where
421-
LaneCount<LANES>: SupportedLaneCount,
422-
Element: SimdElement,
423-
{
424-
}
425-
426-
impl<Element, const LANES: usize> Vector for Simd<Element, LANES>
427-
where
428-
LaneCount<LANES>: SupportedLaneCount,
429-
Element: SimdElement,
430-
{
431-
type Scalar = Element;
432-
const LANES: usize = LANES;
433-
434-
#[inline]
435-
fn splat(val: Self::Scalar) -> Self {
436-
Self::splat(val)
437-
}
438-
}

0 commit comments

Comments
 (0)