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,
impl<T, const LANES: usize> Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
sourcepub fn splat(value: bool) -> Self
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn splat(value: bool) -> Self
portable_simd
#86656)通过将所有 lanes 设置为给定值来构建掩码。
sourcepub fn from_array(array: [bool; LANES]) -> Self
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn from_array(array: [bool; LANES]) -> Self
portable_simd
#86656)将布尔数组转换为 SIMD 掩码。
sourcepub fn to_array(self) -> [bool; LANES]
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn to_array(self) -> [bool; LANES]
portable_simd
#86656)将 SIMD 掩码转换为布尔数组。
sourcepub unsafe fn from_int_unchecked(value: Simd<T, LANES>) -> Self
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub unsafe fn from_int_unchecked(value: Simd<T, LANES>) -> Self
portable_simd
#86656)sourcepub fn from_int(value: Simd<T, LANES>) -> Self
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn from_int(value: Simd<T, LANES>) -> Self
portable_simd
#86656)sourcepub fn to_int(self) -> Simd<T, LANES>
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn to_int(self) -> Simd<T, LANES>
portable_simd
#86656)将掩码转换为整数 vector,其中 0 代表 false
,-1 代表 true
。
sourcepub fn cast<U: MaskElement>(self) -> Mask<U, LANES>
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn cast<U: MaskElement>(self) -> Mask<U, LANES>
portable_simd
#86656)将遮罩转换为任何其他 lane 大小的遮罩。
sourcepub unsafe fn test_unchecked(&self, lane: usize) -> bool
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub unsafe fn test_unchecked(&self, lane: usize) -> bool
portable_simd
#86656)sourcepub fn test(&self, lane: usize) -> bool
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn test(&self, lane: usize) -> bool
portable_simd
#86656)sourcepub unsafe fn set_unchecked(&mut self, lane: usize, value: bool)
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub unsafe fn set_unchecked(&mut self, lane: usize, value: bool)
portable_simd
#86656)sourcepub fn set(&mut self, lane: usize, value: bool)
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn set(&mut self, lane: usize, value: bool)
portable_simd
#86656)source§impl<T, const LANES: usize> Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
sourcepub 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)
pub fn select<U>( self, true_values: Simd<U, LANES>, false_values: Simd<U, LANES> ) -> Simd<U, LANES>where U: SimdElement<Mask = T>,
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]);
Runsourcepub fn select_mask(self, true_values: Self, false_values: Self) -> Self
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn select_mask(self, true_values: Self, false_values: Self) -> Self
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]);
RunTrait Implementations§
source§impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for boolwhere
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitAnd<Mask<T, LANES>> for boolwhere T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitAnd<bool> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitAnd<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitAndAssign<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
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)
fn bitand_assign(&mut self, rhs: Self)
执行
&=
操作。 Read moresource§impl<T, const LANES: usize> BitAndAssign<bool> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
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)
fn bitand_assign(&mut self, rhs: bool)
执行
&=
操作。 Read moresource§impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for boolwhere
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitOr<Mask<T, LANES>> for boolwhere T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitOr<bool> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitOr<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitOrAssign<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
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)
fn bitor_assign(&mut self, rhs: Self)
执行
|=
操作。 Read moresource§impl<T, const LANES: usize> BitOrAssign<bool> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
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)
fn bitor_assign(&mut self, rhs: bool)
执行
|=
操作。 Read moresource§impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for boolwhere
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitXor<Mask<T, LANES>> for boolwhere T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitXor<bool> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> BitXor<bool> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> BitXorAssign<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
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)
fn bitxor_assign(&mut self, rhs: Self)
执行
^=
操作。 Read moresource§impl<T, const LANES: usize> BitXorAssign<bool> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
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)
fn bitxor_assign(&mut self, rhs: bool)
执行
^=
操作。 Read moresource§impl<T, const LANES: usize> Clone for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Clone for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Debug for Mask<T, LANES>where
T: MaskElement + Debug,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Debug for Mask<T, LANES>where T: MaskElement + Debug, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Default for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Default for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> From<[bool; LANES]> for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> From<[bool; LANES]> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> From<Mask<T, LANES>> for [bool; LANES]where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> From<Mask<T, LANES>> for [bool; LANES]where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i32, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i64, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i8, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<isize, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i16, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i64, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i8, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<isize, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i16, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i32, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i8, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<isize, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i16, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i32, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i64, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<isize, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i16, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i32, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i64, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i8, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> Not for Mask<T, LANES>where
T: MaskElement,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> Not for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> PartialEq<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement + PartialEq,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> PartialEq<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialEq, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement + PartialOrd,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialOrd, LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> SimdOrd for Mask<i16, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> SimdOrd for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_max(self, other: Self) -> Self
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
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
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,
impl<const LANES: usize> SimdOrd for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_max(self, other: Self) -> Self
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
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
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,
impl<const LANES: usize> SimdOrd for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_max(self, other: Self) -> Self
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
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
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,
impl<const LANES: usize> SimdOrd for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_max(self, other: Self) -> Self
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
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
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,
impl<const LANES: usize> SimdOrd for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_max(self, other: Self) -> Self
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
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
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,
impl<const LANES: usize> SimdPartialEq for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> SimdPartialEq for Mask<i32, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> SimdPartialEq for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> SimdPartialEq for Mask<i64, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> SimdPartialEq for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> SimdPartialEq for Mask<i8, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> SimdPartialEq for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> SimdPartialEq for Mask<isize, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> SimdPartialEq for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§impl<const LANES: usize> SimdPartialOrd for Mask<i16, LANES>where
LaneCount<LANES>: SupportedLaneCount,
impl<const LANES: usize> SimdPartialOrd for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_lt(self, other: Self) -> Self::Mask
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
fn simd_le(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,
impl<const LANES: usize> SimdPartialOrd for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_lt(self, other: Self) -> Self::Mask
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
fn simd_le(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,
impl<const LANES: usize> SimdPartialOrd for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_lt(self, other: Self) -> Self::Mask
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
fn simd_le(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,
impl<const LANES: usize> SimdPartialOrd for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_lt(self, other: Self) -> Self::Mask
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
fn simd_le(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,
impl<const LANES: usize> SimdPartialOrd for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,
source§fn simd_lt(self, other: Self) -> Self::Mask
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
fn simd_le(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>
impl<T: MaskElement> ToBitMask for Mask<T, 1>
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§fn from_bitmask(bitmask: u8) -> Self
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>
impl<T: MaskElement> ToBitMask for Mask<T, 16>
source§fn to_bitmask(self) -> u16
fn to_bitmask(self) -> u16
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§fn from_bitmask(bitmask: u16) -> Self
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>
impl<T: MaskElement> ToBitMask for Mask<T, 2>
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§fn from_bitmask(bitmask: u8) -> Self
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>
impl<T: MaskElement> ToBitMask for Mask<T, 32>
source§fn to_bitmask(self) -> u32
fn to_bitmask(self) -> u32
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§fn from_bitmask(bitmask: u32) -> Self
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>
impl<T: MaskElement> ToBitMask for Mask<T, 4>
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§fn from_bitmask(bitmask: u8) -> Self
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>
impl<T: MaskElement> ToBitMask for Mask<T, 64>
source§fn to_bitmask(self) -> u64
fn to_bitmask(self) -> u64
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§fn from_bitmask(bitmask: u64) -> Self
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>
impl<T: MaskElement> ToBitMask for Mask<T, 8>
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§fn from_bitmask(bitmask: u8) -> Self
fn from_bitmask(bitmask: u8) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将位掩码转换为掩码。