#[repr(transparent)]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) -> Mask<T, LANES>
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn splat(value: bool) -> Mask<T, LANES>
portable_simd
#86656)通过将所有 lanes 设置为给定值来构建掩码。
sourcepub fn from_array(array: [bool; LANES]) -> Mask<T, LANES>
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn from_array(array: [bool; LANES]) -> Mask<T, LANES>
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>) -> Mask<T, LANES>
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub unsafe fn from_int_unchecked(value: Simd<T, LANES>) -> Mask<T, LANES>
portable_simd
#86656)sourcepub fn from_int(value: Simd<T, LANES>) -> Mask<T, LANES>
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn from_int(value: Simd<T, LANES>) -> Mask<T, LANES>
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>(self) -> Mask<U, LANES>where
U: MaskElement,
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn cast<U>(self) -> Mask<U, LANES>where U: MaskElement,
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: Mask<T, LANES>,
false_values: Mask<T, LANES>
) -> Mask<T, LANES>
🔬This is a nightly-only experimental API. (portable_simd
#86656)
pub fn select_mask( self, true_values: Mask<T, LANES>, false_values: Mask<T, LANES> ) -> Mask<T, LANES>
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: Mask<T, LANES>)
fn bitand_assign(&mut self, rhs: Mask<T, LANES>)
执行
&=
操作。 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: Mask<T, LANES>)
fn bitor_assign(&mut self, rhs: Mask<T, LANES>)
执行
|=
操作。 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: Mask<T, LANES>)
fn bitxor_assign(&mut self, rhs: Mask<T, LANES>)
执行
^=
操作。 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<T>,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> PartialEq<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialEq<T>, LaneCount<LANES>: SupportedLaneCount,
source§impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where
T: MaskElement + PartialOrd<T>,
LaneCount<LANES>: SupportedLaneCount,
impl<T, const LANES: usize> PartialOrd<Mask<T, LANES>> for Mask<T, LANES>where T: MaskElement + PartialOrd<T>, 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: Mask<i16, LANES>) -> Mask<i16, LANES>
fn simd_max(self, other: Mask<i16, LANES>) -> Mask<i16, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)使用
other
返回 lane 方向的最大值。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: Mask<i32, LANES>) -> Mask<i32, LANES>
fn simd_max(self, other: Mask<i32, LANES>) -> Mask<i32, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)使用
other
返回 lane 方向的最大值。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: Mask<i64, LANES>) -> Mask<i64, LANES>
fn simd_max(self, other: Mask<i64, LANES>) -> Mask<i64, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)使用
other
返回 lane 方向的最大值。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: Mask<i8, LANES>) -> Mask<i8, LANES>
fn simd_max(self, other: Mask<i8, LANES>) -> Mask<i8, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)使用
other
返回 lane 方向的最大值。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: Mask<isize, LANES>) -> Mask<isize, LANES>
fn simd_max(self, other: Mask<isize, LANES>) -> Mask<isize, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)使用
other
返回 lane 方向的最大值。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,
§type Mask = Mask<isize, LANES>
type Mask = Mask<isize, LANES>
🔬This is a nightly-only experimental API. (
portable_simd
#86656)每次比较返回的掩码类型。
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: Mask<i16, LANES>
) -> <Mask<i16, LANES> as SimdPartialEq>::Mask
fn simd_lt( self, other: Mask<i16, LANES> ) -> <Mask<i16, LANES> as SimdPartialEq>::Mask
🔬This is a nightly-only experimental API. (
portable_simd
#86656)测试每个 lane 是否小于
other
中对应的 lane。source§fn simd_le(
self,
other: Mask<i16, LANES>
) -> <Mask<i16, LANES> as SimdPartialEq>::Mask
fn simd_le( self, other: Mask<i16, LANES> ) -> <Mask<i16, LANES> as SimdPartialEq>::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: Mask<i32, LANES>
) -> <Mask<i32, LANES> as SimdPartialEq>::Mask
fn simd_lt( self, other: Mask<i32, LANES> ) -> <Mask<i32, LANES> as SimdPartialEq>::Mask
🔬This is a nightly-only experimental API. (
portable_simd
#86656)测试每个 lane 是否小于
other
中对应的 lane。source§fn simd_le(
self,
other: Mask<i32, LANES>
) -> <Mask<i32, LANES> as SimdPartialEq>::Mask
fn simd_le( self, other: Mask<i32, LANES> ) -> <Mask<i32, LANES> as SimdPartialEq>::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: Mask<i64, LANES>
) -> <Mask<i64, LANES> as SimdPartialEq>::Mask
fn simd_lt( self, other: Mask<i64, LANES> ) -> <Mask<i64, LANES> as SimdPartialEq>::Mask
🔬This is a nightly-only experimental API. (
portable_simd
#86656)测试每个 lane 是否小于
other
中对应的 lane。source§fn simd_le(
self,
other: Mask<i64, LANES>
) -> <Mask<i64, LANES> as SimdPartialEq>::Mask
fn simd_le( self, other: Mask<i64, LANES> ) -> <Mask<i64, LANES> as SimdPartialEq>::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: Mask<i8, LANES>
) -> <Mask<i8, LANES> as SimdPartialEq>::Mask
fn simd_lt( self, other: Mask<i8, LANES> ) -> <Mask<i8, LANES> as SimdPartialEq>::Mask
🔬This is a nightly-only experimental API. (
portable_simd
#86656)测试每个 lane 是否小于
other
中对应的 lane。source§fn simd_le(
self,
other: Mask<i8, LANES>
) -> <Mask<i8, LANES> as SimdPartialEq>::Mask
fn simd_le( self, other: Mask<i8, LANES> ) -> <Mask<i8, LANES> as SimdPartialEq>::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: Mask<isize, LANES>
) -> <Mask<isize, LANES> as SimdPartialEq>::Mask
fn simd_lt( self, other: Mask<isize, LANES> ) -> <Mask<isize, LANES> as SimdPartialEq>::Mask
🔬This is a nightly-only experimental API. (
portable_simd
#86656)测试每个 lane 是否小于
other
中对应的 lane。source§fn simd_le(
self,
other: Mask<isize, LANES>
) -> <Mask<isize, LANES> as SimdPartialEq>::Mask
fn simd_le( self, other: Mask<isize, LANES> ) -> <Mask<isize, LANES> as SimdPartialEq>::Mask
🔬This is a nightly-only experimental API. (
portable_simd
#86656)测试每个 lane 是否小于或等于
other
中对应的 lane。source§impl<T> ToBitMask for Mask<T, 1>where
T: MaskElement,
impl<T> ToBitMask for Mask<T, 1>where T: MaskElement,
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§impl<T> ToBitMask for Mask<T, 16>where
T: MaskElement,
impl<T> ToBitMask for Mask<T, 16>where T: MaskElement,
source§fn to_bitmask(self) -> u16
fn to_bitmask(self) -> u16
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§impl<T> ToBitMask for Mask<T, 2>where
T: MaskElement,
impl<T> ToBitMask for Mask<T, 2>where T: MaskElement,
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§impl<T> ToBitMask for Mask<T, 32>where
T: MaskElement,
impl<T> ToBitMask for Mask<T, 32>where T: MaskElement,
source§fn to_bitmask(self) -> u32
fn to_bitmask(self) -> u32
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§impl<T> ToBitMask for Mask<T, 4>where
T: MaskElement,
impl<T> ToBitMask for Mask<T, 4>where T: MaskElement,
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§impl<T> ToBitMask for Mask<T, 64>where
T: MaskElement,
impl<T> ToBitMask for Mask<T, 64>where T: MaskElement,
source§fn to_bitmask(self) -> u64
fn to_bitmask(self) -> u64
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
source§impl<T> ToBitMask for Mask<T, 8>where
T: MaskElement,
impl<T> ToBitMask for Mask<T, 8>where T: MaskElement,
source§fn to_bitmask(self) -> u8
fn to_bitmask(self) -> u8
🔬This is a nightly-only experimental API. (
portable_simd
#86656)将掩码转换为位掩码。
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值中借用。 Read more