2019-05-28 16:53:48 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
use std::ops::Add;
|
|
|
|
|
2023-01-30 12:05:12 -06:00
|
|
|
// @has foo/struct.Simd.html '//pre[@class="rust item-decl"]' 'pub struct Simd<T, const WIDTH: usize>'
|
2019-05-28 16:53:48 -05:00
|
|
|
pub struct Simd<T, const WIDTH: usize> {
|
|
|
|
inner: T,
|
|
|
|
}
|
|
|
|
|
2023-06-09 08:30:08 -05:00
|
|
|
// @has foo/struct.Simd.html '//div[@id="trait-implementations-list"]//h3[@class="code-header"]' 'impl Add for Simd<u8, 16>'
|
2019-05-28 16:53:48 -05:00
|
|
|
impl Add for Simd<u8, 16> {
|
|
|
|
type Output = Self;
|
|
|
|
|
|
|
|
fn add(self, rhs: Self) -> Self::Output {
|
|
|
|
Self { inner: 0 }
|
|
|
|
}
|
|
|
|
}
|