Struct hagane_simd::vector::int3
[−]
[src]
#[repr(C)] #[repr(simd)]pub struct int3(pub i32, pub i32, pub i32);
Methods
impl int3
[src]
Trait Implementations
impl Vector for int3
[src]
type Scalar = i32
type Boolean = int3
type CharVector = char3
type ShortVector = short3
type IntVector = int3
type LongVector = long3
type UCharVector = uchar3
type UShortVector = ushort3
type UIntVector = uint3
type ULongVector = ulong3
type FloatVector = float3
type DoubleVector = double3
fn map_unary(self, f: &Fn(Self::Scalar) -> Self::Scalar) -> Self
fn map_binary(
self,
other: Self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self
self,
other: Self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self
fn reduce(
self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self::Scalar
self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self::Scalar
fn abs(self) -> Self
fn to_char_sat(self) -> char3
fn to_uchar_sat(self) -> uchar3
fn to_short_sat(self) -> short3
fn to_ushort_sat(self) -> ushort3
fn to_int_sat(self) -> int3
fn to_uint_sat(self) -> uint3
fn to_long(self) -> long3
fn to_long_sat(self) -> long3
fn to_ulong(self) -> ulong3
fn to_ulong_sat(self) -> ulong3
fn to_double(self) -> double3
fn bitcast<T: Vector>(x: T) -> Self
fn broadcast(x: Self::Scalar) -> Self
fn extract(self, i: u32) -> Self::Scalar
fn replace(self, i: u32, value: Self::Scalar) -> Self
fn add_mul(self, a: Self, b: Self) -> Self
fn eq(self, other: Self) -> Self::Boolean
fn ne(self, other: Self) -> Self::Boolean
fn lt(self, other: Self) -> Self::Boolean
fn le(self, other: Self) -> Self::Boolean
fn gt(self, other: Self) -> Self::Boolean
fn ge(self, other: Self) -> Self::Boolean
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self
fn clamp(self, min: Self, max: Self) -> Self
fn reduce_add(self) -> Self::Scalar
fn reduce_max(self) -> Self::Scalar
fn reduce_min(self) -> Self::Scalar
fn to_char(self) -> Self::CharVector
fn to_short(self) -> Self::ShortVector
fn to_int(self) -> Self::IntVector
fn to_uchar(self) -> Self::UCharVector
fn to_ushort(self) -> Self::UShortVector
fn to_uint(self) -> Self::UIntVector
fn to_float(self) -> Self::FloatVector
fn to_boolean(self) -> Self::Boolean
impl Dot<int3> for int3
[src]
type DotProduct = i32
fn dot(self, other: Self) -> Self::DotProduct
impl Integer for int3
[src]
type IntegerScalar = i32
const SIGN_MASK: i32
SIGN_MASK: i32 = std::i32::MIN
fn reduce_and(self) -> Self::Scalar
fn reduce_or(self) -> Self::Scalar
fn reduce_xor(self) -> Self::Scalar
fn all(self) -> bool
fn any(self) -> bool
impl Select<int3> for int3
[src]
const MASK_SHIFT: i32
MASK_SHIFT: i32 = 31
fn bitselect(self, a: int3, b: int3) -> int3
fn select(self, a: T, b: T) -> T
impl Select<uint3> for int3
[src]
const MASK_SHIFT: i32
MASK_SHIFT: i32 = 31
fn bitselect(self, a: uint3, b: uint3) -> uint3
fn select(self, a: T, b: T) -> T
impl Select<float3> for int3
[src]
const MASK_SHIFT: i32
MASK_SHIFT: i32 = 31
fn bitselect(self, a: float3, b: float3) -> float3
fn select(self, a: T, b: T) -> T
impl Copy for int3
[src]
impl Clone for int3
[src]
fn clone(&self) -> int3
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for int3
[src]
impl Add<int3> for int3
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: Self) -> Self
The method for the +
operator
impl Add<i32> for int3
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: i32) -> Self
The method for the +
operator
impl Sub<int3> for int3
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: Self) -> Self
The method for the -
operator
impl Sub<i32> for int3
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: i32) -> Self
The method for the -
operator
impl Mul<int3> for int3
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, other: Self) -> Self
The method for the *
operator
impl Mul<i32> for int3
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, other: i32) -> Self
The method for the *
operator
impl Div<int3> for int3
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, other: Self) -> Self
The method for the /
operator
impl Div<i32> for int3
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, other: i32) -> Self
The method for the /
operator
impl Neg for int3
[src]
type Output = Self
The resulting type after applying the -
operator
fn neg(self) -> Self
The method for the unary -
operator
impl PartialEq for int3
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Self) -> bool
This method tests for !=
.
impl BitAnd<int3> for int3
[src]
type Output = Self
The resulting type after applying the &
operator
fn bitand(self, other: Self) -> Self
The method for the &
operator
impl BitAnd<i32> for int3
[src]
type Output = Self
The resulting type after applying the &
operator
fn bitand(self, other: i32) -> Self
The method for the &
operator
impl BitOr<int3> for int3
[src]
type Output = Self
The resulting type after applying the |
operator
fn bitor(self, other: Self) -> Self
The method for the |
operator
impl BitOr<i32> for int3
[src]
type Output = Self
The resulting type after applying the |
operator
fn bitor(self, other: i32) -> Self
The method for the |
operator
impl BitXor<int3> for int3
[src]
type Output = Self
The resulting type after applying the ^
operator
fn bitxor(self, other: Self) -> Self
The method for the ^
operator
impl BitXor<i32> for int3
[src]
type Output = Self
The resulting type after applying the ^
operator
fn bitxor(self, other: i32) -> Self
The method for the ^
operator
impl Shl<int3> for int3
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: Self) -> Self
The method for the <<
operator
impl Shl<i32> for int3
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: i32) -> Self
The method for the <<
operator
impl Shr<int3> for int3
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: Self) -> Self
The method for the >>
operator
impl Shr<i32> for int3
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: i32) -> Self
The method for the >>
operator
impl Rem for int3
[src]
type Output = Self
The resulting type after applying the %
operator
fn rem(self, other: Self) -> Self
The method for the %
operator
impl Not for int3
[src]
type Output = Self
The resulting type after applying the !
operator
fn not(self) -> Self
The method for the unary !
operator