Debian Codegraph @

debian/missing-sources/glam-0.23.0/src/bool/sse2/bvec3a.rs

raw symbols SCIP
1 // Generated from vec_mask.rs.tera template. Edit the template, not the generated file.
2
3 #[cfg(not(target_arch = "spirv"))]
4 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/;
5 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::*;
6
7 #[cfg(target_arch = "x86")]
8 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core arch/::x86::*;
9 #[cfg(target_arch = "x86_64")]
10 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core arch/::x86_64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/arch/x86_64/::*;
11
12 union UnionCastrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/UnionCast# {
13 arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/UnionCast#a.: [u32; 4],
14 vrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/UnionCast#v.: BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#,
15 }
16
17 /// A 3-dimensional SIMD vector mask.
18 ///
19 /// This type is 16 byte aligned and is backed by a SIMD vector. If SIMD is not available
20 /// `BVec3A` will be a type alias for `BVec3`.
21 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:)]
22 #[repr(transparent)]
23 pub struct BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#(pub(craterust-analyzer cargo glam 0.23.0 crate/) __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#);
24
25 const MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/MASK.: [u32; 2] = [0, 0xff_ff_ff_ff];
26
27 impl BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
28 /// All false.
29 pub const FALSErust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]FALSE.: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A] = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]::splatrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]splat().(false);
30
31 /// All true.
32 pub const TRUErust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]TRUE.: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A] = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]::splatrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]splat().(true);
33
34 /// Creates a new vector mask.
35 #[inline(always)]
36 pub const fn newrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]new().(x: bool, y: bool, z: bool) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A] {
37 unsafe {
38 UnionCastrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/UnionCast# {
39 arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/UnionCast#a.: [MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().x as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().y as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().z as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., 0],
40 }
41 .vrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/UnionCast#v.
42 }
43 }
44
45 /// Creates a vector with all elements set to `v`.
46 #[inline]
47 pub const fn splatrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]splat().(v: bool) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A] {
48 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]::newrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]new().(v, v, v)
49 }
50
51 /// Returns a bitmask with the lowest 3 bits set from the elements of `self`.
52 ///
53 /// A true element results in a `1` bit and a false element in a `0` bit. Element `x` goes
54 /// into the first lowest bit, element `y` into the second, etc.
55 #[inline]
56 pub fn bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().(self) -> u32 {
57 unsafe { (_mm_movemask_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_movemask_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0.) as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().0x7 }
58 }
59
60 /// Returns true if any of the elements are true, false otherwise.
61 #[inline]
62 pub fn anyrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]any().(self) -> bool {
63 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0
64 }
65
66 /// Returns true if all the elements are true, false otherwise.
67 #[inline]
68 pub fn allrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]all().(self) -> bool {
69 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq().0x7
70 }
71
72 #[inline]
73 fn into_bool_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]into_bool_array().(self) -> [bool; 3] {
74 let bitmask = self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().();
75 [(bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0, (bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().2) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0, (bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().4) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0]
76 }
77
78 #[inline]
79 fn into_u32_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]into_u32_array().(self) -> [u32; 3] {
80 let bitmask = self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().();
81 [
82 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().(bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
83 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().((bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().1) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
84 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().((bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().2) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
85 ]
86 }
87 }
88
89 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
90 #[inline]
91 fn defaultrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Default]default().() -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Default] {
92 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Default]::FALSErust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]FALSE.
93 }
94 }
95
96 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
97 #[inline]
98 fn eqrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`PartialEq<Self>`]eq().(&self, rhs: &Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`PartialEq<Self>`]) -> bool {
99 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().().eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq().(&rhs.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().())
100 }
101 }
102
103 impl Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {}
104
105 impl corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/::Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/Hash# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
106 #[inline]
107 fn hashrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Hash]hash().<H: corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/::Hasherrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/Hasher#>(&self, state: &mut H) {
108 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]bitmask().().hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/impls/impl#[u32][Hash]hash().(state);
109 }
110 }
111
112 impl BitAndrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitAnd# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
113 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAnd<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAnd<Self>`];
114 #[inline]
115 fn bitandrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAnd<Self>`]bitand().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAnd<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAnd<Self>`] {
116 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAnd<Self>`](unsafe { _mm_and_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_and_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0., rhs.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0.) })
117 }
118 }
119
120 impl BitAndAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitAndAssign# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
121 #[inline]
122 fn bitand_assignrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAndAssign<Self>`]bitand_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAndAssign<Self>`]) {
123 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.bitandrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitAnd<Self>`]bitand().(rhs);
124 }
125 }
126
127 impl BitOrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitOr# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
128 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOr<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOr<Self>`];
129 #[inline]
130 fn bitorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOr<Self>`]bitor().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOr<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOr<Self>`] {
131 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOr<Self>`](unsafe { _mm_or_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_or_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0., rhs.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0.) })
132 }
133 }
134
135 impl BitOrAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitOrAssign# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
136 #[inline]
137 fn bitor_assignrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOrAssign<Self>`]bitor_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOrAssign<Self>`]) {
138 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.bitorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitOr<Self>`]bitor().(rhs);
139 }
140 }
141
142 impl BitXorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitXor# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
143 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXor<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXor<Self>`];
144 #[inline]
145 fn bitxorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXor<Self>`]bitxor().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXor<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXor<Self>`] {
146 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXor<Self>`](unsafe { _mm_xor_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_xor_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0., rhs.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0.) })
147 }
148 }
149
150 impl BitXorAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitXorAssign# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
151 #[inline]
152 fn bitxor_assignrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXorAssign<Self>`]bitxor_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXorAssign<Self>`]) {
153 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.bitxorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][`BitXor<Self>`]bitxor().(rhs);
154 }
155 }
156
157 impl Notrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/Not# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
158 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Not]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Not];
159 #[inline]
160 fn notrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Not]not().(self) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Not] {
161 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Not](unsafe { _mm_andnot_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_andnot_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0., _mm_set_ps1rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps1().(f32::from_bitsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]from_bits().(0xff_ff_ff_ff))) })
162 }
163 }
164
165 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#> for __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
166 #[inline]
167 fn fromrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[__m128][`From<BVec3A>`]from().(t: BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[__m128][`From<BVec3A>`] {
168 t.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#0.
169 }
170 }
171
172 #[cfg(not(target_arch = "spirv"))]
173 impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
174 fn fmtrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Debug]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
175 let arr = self.into_u32_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]into_u32_array().();
176 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(
177 f,
178 "{}({:#x}, {:#x}, {:#x})",
179 stringifyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/stringify!!(BVec3A),
180 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
181 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
182 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().
183 )
184 }
185 }
186
187 #[cfg(not(target_arch = "spirv"))]
188 impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A# {
189 fn fmtrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
190 let arr = self.into_bool_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]into_bool_array().();
191 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "[{}, {}, {}]", arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().)
192 }
193 }
194
195 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#> for [bool; 3] {
196 #[inline]
197 fn fromrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[`[bool; 3]`][`From<BVec3A>`]from().(mask: BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[`[bool; 3]`][`From<BVec3A>`] {
198 mask.into_bool_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]into_bool_array().()
199 }
200 }
201
202 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#> for [u32; 3] {
203 #[inline]
204 fn fromrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[`[u32; 3]`][`From<BVec3A>`]from().(mask: BVec3Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/BVec3A#) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[`[u32; 3]`][`From<BVec3A>`] {
205 mask.into_u32_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec3a/impl#[BVec3A]into_u32_array().()
206 }
207 }