Struct core::simd::Mask

source ·
pub struct Mask<T, const LANES: usize>(_)
where
         T: MaskElement,
         LaneCount<LANES>: SupportedLaneCount;
🔬This is a nightly-only experimental API. (portable_simd #86656)
Expand description

Element 指定宽度的 LANES 元素的 SIMD vector 掩码。

掩码代表基于每个 lane 的布尔 inclusion/exclusion。

此类型的布局未指定,可能会在平台或者 Rust 版本之间发生变化,并且代码不应假定它等同于 [T; LANES]

Implementations§

source§

impl<T, const LANES: usize> Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source

pub fn splat(value: bool) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)

通过将所有 lanes 设置为给定值来构建掩码。

source

pub fn from_array(array: [bool; LANES]) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)

将布尔数组转换为 SIMD 掩码。

source

pub fn to_array(self) -> [bool; LANES]

🔬This is a nightly-only experimental API. (portable_simd #86656)

将 SIMD 掩码转换为布尔数组。

source

pub unsafe fn from_int_unchecked(value: Simd<T, LANES>) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)

将整数 vector 转换为掩码,其中 0 代表 false,-1 代表 true

Safety

所有 lanes 必须为 0 或 -1。

source

pub fn from_int(value: Simd<T, LANES>) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)

将整数 vector 转换为掩码,其中 0 代表 false,-1 代表 true

Panics

如果任何 lane 不是 0 或 -1,就会出现 panics。

source

pub fn to_int(self) -> Simd<T, LANES>

🔬This is a nightly-only experimental API. (portable_simd #86656)

将掩码转换为整数 vector,其中 0 代表 false,-1 代表 true

source

pub fn cast<U: MaskElement>(self) -> Mask<U, LANES>

🔬This is a nightly-only experimental API. (portable_simd #86656)

将遮罩转换为任何其他 lane 大小的遮罩。

source

pub unsafe fn test_unchecked(&self, lane: usize) -> bool

🔬This is a nightly-only experimental API. (portable_simd #86656)

测试指定 lane 的值。

Safety

lane 必须小于 LANES

source

pub fn test(&self, lane: usize) -> bool

🔬This is a nightly-only experimental API. (portable_simd #86656)

测试指定 lane 的值。

Panics

如果 lane 大于或等于 vector 中的 lane 数,则出现 panics。

source

pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool)

🔬This is a nightly-only experimental API. (portable_simd #86656)

设置指定 lane 的值。

Safety

lane 必须小于 LANES

source

pub fn set(&mut self, lane: usize, value: bool)

🔬This is a nightly-only experimental API. (portable_simd #86656)

设置指定 lane 的值。

Panics

如果 lane 大于或等于 vector 中的 lane 数,则出现 panics。

source

pub fn any(self) -> bool

🔬This is a nightly-only experimental API. (portable_simd #86656)

如果设置了任何 lane,则返回 true,否则返回 false。

source

pub fn all(self) -> bool

🔬This is a nightly-only experimental API. (portable_simd #86656)

如果设置了所有 lanes,则返回 true,否则返回 false。

source§

impl<T, const LANES: usize> Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source

pub fn select<U>( self, true_values: Simd<U, LANES>, false_values: Simd<U, LANES> ) -> Simd<U, LANES>where U: SimdElement<Mask = T>,

🔬This is a nightly-only experimental API. (portable_simd #86656)

从两个 vectors 中选择 lanes。

对于掩码中的每个 lane,如果该 lane 的掩码为 true,则从 true_values 中选择相应的 lane,如果该 lane 的掩码为 false,则从 false_values 中选择相应的 lane。

Examples
let a = Simd::from_array([0, 1, 2, 3]);
let b = Simd::from_array([4, 5, 6, 7]);
let mask = Mask::from_array([true, false, false, true]);
let c = mask.select(a, b);
assert_eq!(c.to_array(), [0, 5, 6, 3]);
Run
source

pub fn select_mask(self, true_values: Self, false_values: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)

从两个掩码中选择 lanes。

对于掩码中的每个 lane,如果该 lane 的掩码为 true,则从 true_values 中选择相应的 lane,如果该 lane 的掩码为 false,则从 false_values 中选择相应的 lane。

Examples
let a = Mask::<i32, 4>::from_array([true, true, false, false]);
let b = Mask::<i32, 4>::from_array([false, false, true, true]);
let mask = Mask::<i32, 4>::from_array([true, false, false, true]);
let c = mask.select_mask(a, b);
assert_eq!(c.to_array(), [true, false, true, false]);
Run

Trait Implementations§

source§

impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 & 运算符后的结果类型。
source§

fn bitand(self, rhs: Self) -> Self

执行 & 操作。 Read more
source§

impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for boolwhere T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 & 运算符后的结果类型。
source§

fn bitand(self, rhs: Mask<T, LANES>) -> Mask<T, LANES>

执行 & 操作。 Read more
source§

impl<T, const LANES: usize> BitAnd<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 & 运算符后的结果类型。
source§

fn bitand(self, rhs: bool) -> Self

执行 & 操作。 Read more
source§

impl<T, const LANES: usize> BitAndAssign<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn bitand_assign(&mut self, rhs: Self)

执行 &= 操作。 Read more
source§

impl<T, const LANES: usize> BitAndAssign<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn bitand_assign(&mut self, rhs: bool)

执行 &= 操作。 Read more
source§

impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 | 运算符后的结果类型。
source§

fn bitor(self, rhs: Self) -> Self

执行 | 操作。 Read more
source§

impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for boolwhere T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 | 运算符后的结果类型。
source§

fn bitor(self, rhs: Mask<T, LANES>) -> Mask<T, LANES>

执行 | 操作。 Read more
source§

impl<T, const LANES: usize> BitOr<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 | 运算符后的结果类型。
source§

fn bitor(self, rhs: bool) -> Self

执行 | 操作。 Read more
source§

impl<T, const LANES: usize> BitOrAssign<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn bitor_assign(&mut self, rhs: Self)

执行 |= 操作。 Read more
source§

impl<T, const LANES: usize> BitOrAssign<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn bitor_assign(&mut self, rhs: bool)

执行 |= 操作。 Read more
source§

impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 ^ 运算符后的结果类型。
source§

fn bitxor(self, rhs: Self) -> Self::Output

执行 ^ 操作。 Read more
source§

impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for boolwhere T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 ^ 运算符后的结果类型。
source§

fn bitxor(self, rhs: Mask<T, LANES>) -> Self::Output

执行 ^ 操作。 Read more
source§

impl<T, const LANES: usize> BitXor<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 ^ 运算符后的结果类型。
source§

fn bitxor(self, rhs: bool) -> Self::Output

执行 ^ 操作。 Read more
source§

impl<T, const LANES: usize> BitXorAssign<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn bitxor_assign(&mut self, rhs: Self)

执行 ^= 操作。 Read more
source§

impl<T, const LANES: usize> BitXorAssign<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn bitxor_assign(&mut self, rhs: bool)

执行 ^= 操作。 Read more
source§

impl<T, const LANES: usize> Clone for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn clone(&self) -> Self

返回值的副本。 Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

source 执行复制分配。 Read more
source§

impl<T, const LANES: usize> Debug for Mask<T, LANES>where T: MaskElement + Debug, LaneCount<LANES>: SupportedLaneCount,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

使用给定的格式化程序格式化该值。 Read more
source§

impl<T, const LANES: usize> Default for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn default() -> Self

返回类型的 “默认值”。 Read more
source§

impl<T, const LANES: usize> From<[bool; LANES]> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn from(array: [bool; LANES]) -> Self

从输入类型转换为此类型。
source§

impl<T, const LANES: usize> From<Mask<T, LANES>> for [bool; LANES]where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

fn from(vector: Mask<T, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i16, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i16, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i16, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i16, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i32, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i32, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i32, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i32, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i64, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i64, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i64, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i64, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i8, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i8, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i8, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<i8, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<isize, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<isize, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<isize, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn from(value: Mask<isize, LANES>) -> Self

从输入类型转换为此类型。
source§

impl<T, const LANES: usize> Not for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

应用 ! 运算符后的结果类型。
source§

fn not(self) -> Self::Output

执行一元 ! 操作。 Read more
source§

impl<T, const LANES: usize> PartialEq<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialEq, LaneCount<LANES>: SupportedLaneCount,

source§

fn eq(&self, other: &Self) -> bool

此方法测试 selfother 值是否相等,并由 == 使用。
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

此方法测试 !=。 默认实现几乎总是足够的,并且不应在没有充分理由的情况下被覆盖。
source§

impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialOrd, LaneCount<LANES>: SupportedLaneCount,

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

如果存在,则此方法返回 selfother 值之间的顺序。 Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

此方法测试的内容少于 (对于 selfother),并且由 < 操作员使用。 Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

此方法测试小于或等于 (对于 selfother),并且由 <= 运算符使用。 Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

此方法测试大于 (对于 selfother),并且由 > 操作员使用。 Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

此方法测试是否大于或等于 (对于 selfother),并且由 >= 运算符使用。 Read more
source§

impl<const LANES: usize> SimdOrd for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_max(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最大值。
source§

fn simd_min(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最小值。
source§

fn simd_clamp(self, min: Self, max: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将每个 lane 限制在一定的间隔内。 Read more
source§

impl<const LANES: usize> SimdOrd for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_max(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最大值。
source§

fn simd_min(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最小值。
source§

fn simd_clamp(self, min: Self, max: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将每个 lane 限制在一定的间隔内。 Read more
source§

impl<const LANES: usize> SimdOrd for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_max(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最大值。
source§

fn simd_min(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最小值。
source§

fn simd_clamp(self, min: Self, max: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将每个 lane 限制在一定的间隔内。 Read more
source§

impl<const LANES: usize> SimdOrd for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_max(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最大值。
source§

fn simd_min(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最小值。
source§

fn simd_clamp(self, min: Self, max: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将每个 lane 限制在一定的间隔内。 Read more
source§

impl<const LANES: usize> SimdOrd for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_max(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最大值。
source§

fn simd_min(self, other: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
使用 other 返回 lane 方向的最小值。
source§

fn simd_clamp(self, min: Self, max: Self) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将每个 lane 限制在一定的间隔内。 Read more
source§

impl<const LANES: usize> SimdPartialEq for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

§

type Mask = Mask<i16, LANES>

🔬This is a nightly-only experimental API. (portable_simd #86656)
每次比较返回的掩码类型。
source§

fn simd_eq(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

fn simd_ne(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialEq for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

§

type Mask = Mask<i32, LANES>

🔬This is a nightly-only experimental API. (portable_simd #86656)
每次比较返回的掩码类型。
source§

fn simd_eq(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

fn simd_ne(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialEq for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

§

type Mask = Mask<i64, LANES>

🔬This is a nightly-only experimental API. (portable_simd #86656)
每次比较返回的掩码类型。
source§

fn simd_eq(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

fn simd_ne(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialEq for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

§

type Mask = Mask<i8, LANES>

🔬This is a nightly-only experimental API. (portable_simd #86656)
每次比较返回的掩码类型。
source§

fn simd_eq(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

fn simd_ne(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialEq for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

§

type Mask = Mask<isize, LANES>

🔬This is a nightly-only experimental API. (portable_simd #86656)
每次比较返回的掩码类型。
source§

fn simd_eq(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

fn simd_ne(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialOrd for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_lt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于 other 中对应的 lane。
source§

fn simd_le(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于或等于 other 中对应的 lane。
source§

fn simd_gt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于 other 中对应的 lane。
source§

fn simd_ge(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于或等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialOrd for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_lt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于 other 中对应的 lane。
source§

fn simd_le(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于或等于 other 中对应的 lane。
source§

fn simd_gt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于 other 中对应的 lane。
source§

fn simd_ge(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于或等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialOrd for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_lt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于 other 中对应的 lane。
source§

fn simd_le(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于或等于 other 中对应的 lane。
source§

fn simd_gt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于 other 中对应的 lane。
source§

fn simd_ge(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于或等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialOrd for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_lt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于 other 中对应的 lane。
source§

fn simd_le(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于或等于 other 中对应的 lane。
source§

fn simd_gt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于 other 中对应的 lane。
source§

fn simd_ge(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于或等于 other 中对应的 lane。
source§

impl<const LANES: usize> SimdPartialOrd for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

fn simd_lt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于 other 中对应的 lane。
source§

fn simd_le(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否小于或等于 other 中对应的 lane。
source§

fn simd_gt(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于 other 中对应的 lane。
source§

fn simd_ge(self, other: Self) -> Self::Mask

🔬This is a nightly-only experimental API. (portable_simd #86656)
测试每个 lane 是否大于或等于 other 中对应的 lane。
source§

impl<T: MaskElement> ToBitMask for Mask<T, 1>

§

type BitMask = u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
整数位掩码类型。
source§

fn to_bitmask(self) -> u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
将掩码转换为位掩码。
source§

fn from_bitmask(bitmask: u8) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将位掩码转换为掩码。
source§

impl<T: MaskElement> ToBitMask for Mask<T, 16>

§

type BitMask = u16

🔬This is a nightly-only experimental API. (portable_simd #86656)
整数位掩码类型。
source§

fn to_bitmask(self) -> u16

🔬This is a nightly-only experimental API. (portable_simd #86656)
将掩码转换为位掩码。
source§

fn from_bitmask(bitmask: u16) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将位掩码转换为掩码。
source§

impl<T: MaskElement> ToBitMask for Mask<T, 2>

§

type BitMask = u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
整数位掩码类型。
source§

fn to_bitmask(self) -> u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
将掩码转换为位掩码。
source§

fn from_bitmask(bitmask: u8) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将位掩码转换为掩码。
source§

impl<T: MaskElement> ToBitMask for Mask<T, 32>

§

type BitMask = u32

🔬This is a nightly-only experimental API. (portable_simd #86656)
整数位掩码类型。
source§

fn to_bitmask(self) -> u32

🔬This is a nightly-only experimental API. (portable_simd #86656)
将掩码转换为位掩码。
source§

fn from_bitmask(bitmask: u32) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将位掩码转换为掩码。
source§

impl<T: MaskElement> ToBitMask for Mask<T, 4>

§

type BitMask = u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
整数位掩码类型。
source§

fn to_bitmask(self) -> u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
将掩码转换为位掩码。
source§

fn from_bitmask(bitmask: u8) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将位掩码转换为掩码。
source§

impl<T: MaskElement> ToBitMask for Mask<T, 64>

§

type BitMask = u64

🔬This is a nightly-only experimental API. (portable_simd #86656)
整数位掩码类型。
source§

fn to_bitmask(self) -> u64

🔬This is a nightly-only experimental API. (portable_simd #86656)
将掩码转换为位掩码。
source§

fn from_bitmask(bitmask: u64) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将位掩码转换为掩码。
source§

impl<T: MaskElement> ToBitMask for Mask<T, 8>

§

type BitMask = u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
整数位掩码类型。
source§

fn to_bitmask(self) -> u8

🔬This is a nightly-only experimental API. (portable_simd #86656)
将掩码转换为位掩码。
source§

fn from_bitmask(bitmask: u8) -> Self

🔬This is a nightly-only experimental API. (portable_simd #86656)
将位掩码转换为掩码。
source§

impl<T, const LANES: usize> Copy for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

Auto Trait Implementations§

§

impl<T, const LANES: usize> RefUnwindSafe for Mask<T, LANES>where T: RefUnwindSafe,

§

impl<T, const LANES: usize> Send for Mask<T, LANES>where T: Send,

§

impl<T, const LANES: usize> Sync for Mask<T, LANES>where T: Sync,

§

impl<T, const LANES: usize> Unpin for Mask<T, LANES>where T: Unpin,

§

impl<T, const LANES: usize> UnwindSafe for Mask<T, LANES>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

获取 selfTypeIdRead more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

从拥有的值中一成不变地借用。 Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

从拥有的值中借用。 Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

返回未更改的参数。

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

调用 U::from(self)

也就是说,这种转换是 From<T> for U 实现选择执行的任何操作。

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

发生转换错误时返回的类型。
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

执行转换。
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

发生转换错误时返回的类型。
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

执行转换。