Debian Codegraph @

debian/missing-sources/glam-0.16.0/src/core/scalar/mask.rs

raw symbols SCIP
1 use craterust-analyzer cargo glam 0.16.0 crate/::corerust-analyzer cargo glam 0.16.0 core/::{
2 storagerust-analyzer cargo glam 0.16.0 core/storage/::{XYrust-analyzer cargo glam 0.16.0 core/storage/XY#, XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#, XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#},
3 traitsrust-analyzer cargo glam 0.16.0 core/traits/::{scalarrust-analyzer cargo glam 0.16.0 core/traits/scalar/::*, vectorrust-analyzer cargo glam 0.16.0 core/traits/vector/::*},
4 };
5
6 impl MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst# for u32 {
7 const MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.: [u32; 2] = [0, 0xff_ff_ff_ff];
8 }
9
10 impl MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst# for u64 {
11 const MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u64][MaskConst]MASK.: [u64; 2] = [0, 0xff_ff_ff_ff_ff_ff_ff_ff];
12 }
13
14 // u32 (currently unused)
15
16 /*
17 impl MaskVectorConst for XY<u32> {
18 const FALSE: Self = Self { x: 0, y: 0 };
19 }
20
21 impl MaskVectorConst for XYZ<u32> {
22 const FALSE: Self = Self { x: 0, y: 0, z: 0 };
23 }
24
25 impl MaskVectorConst for XYZW<u32> {
26 const FALSE: Self = Self {
27 x: 0,
28 y: 0,
29 z: 0,
30 w: 0,
31 };
32 }
33
34 impl MaskVector for XY<u32> {
35 #[inline]
36 fn bitand(self, other: Self) -> Self {
37 Self {
38 x: self.x & other.x,
39 y: self.y & other.y,
40 }
41 }
42
43 #[inline]
44 fn bitor(self, other: Self) -> Self {
45 Self {
46 x: self.x | other.x,
47 y: self.y | other.y,
48 }
49 }
50
51 #[inline]
52 fn not(self) -> Self {
53 Self {
54 x: !self.x,
55 y: !self.y,
56 }
57 }
58 }
59
60 impl MaskVector for XYZ<u32> {
61 #[inline]
62 fn bitand(self, other: Self) -> Self {
63 Self {
64 x: self.x & other.x,
65 y: self.y & other.y,
66 z: self.z & other.z,
67 }
68 }
69
70 #[inline]
71 fn bitor(self, other: Self) -> Self {
72 Self {
73 x: self.x | other.x,
74 y: self.y | other.y,
75 z: self.z | other.z,
76 }
77 }
78
79 #[inline]
80 fn not(self) -> Self {
81 Self {
82 x: !self.x,
83 y: !self.y,
84 z: !self.z,
85 }
86 }
87 }
88
89 impl MaskVector for XYZW<u32> {
90 #[inline]
91 fn bitand(self, other: Self) -> Self {
92 Self {
93 x: self.x & other.x,
94 y: self.y & other.y,
95 z: self.z & other.z,
96 w: self.w & other.w,
97 }
98 }
99
100 #[inline]
101 fn bitor(self, other: Self) -> Self {
102 Self {
103 x: self.x | other.x,
104 y: self.y | other.y,
105 z: self.z | other.z,
106 w: self.w | other.w,
107 }
108 }
109
110 #[inline]
111 fn not(self) -> Self {
112 Self {
113 x: !self.x,
114 y: !self.y,
115 z: !self.z,
116 w: !self.w,
117 }
118 }
119 }
120
121 impl MaskVector2 for XY<u32> {
122 #[inline(always)]
123 fn new(x: bool, y: bool) -> Self {
124 Self {
125 x: MaskConst::MASK[x as usize],
126 y: MaskConst::MASK[y as usize],
127 }
128 }
129
130 #[inline]
131 fn bitmask(self) -> u32 {
132 (self.x as u32 & 0x1) | (self.y as u32 & 0x1) << 1
133 }
134
135 #[inline]
136 fn any(self) -> bool {
137 ((self.x | self.y) & 0x1) != 0
138 }
139
140 #[inline]
141 fn all(self) -> bool {
142 ((self.x & self.y) & 0x1) != 0
143 }
144
145 #[inline]
146 fn into_bool_array(self) -> [bool; 2] {
147 [self.x != 0, self.y != 0]
148 }
149
150 #[inline]
151 fn into_u32_array(self) -> [u32; 2] {
152 [self.x, self.y]
153 }
154 }
155
156 impl MaskVector3 for XYZ<u32> {
157 #[inline(always)]
158 fn new(x: bool, y: bool, z: bool) -> Self {
159 // A SSE2 mask can be any bit pattern but for the `Vec3Mask` implementation of select
160 // we expect either 0 or 0xff_ff_ff_ff. This should be a safe assumption as this type
161 // can only be created via this function or by `Vec3` methods.
162 Self {
163 x: MaskConst::MASK[x as usize],
164 y: MaskConst::MASK[y as usize],
165 z: MaskConst::MASK[z as usize],
166 }
167 }
168
169 #[inline]
170 fn bitmask(self) -> u32 {
171 (self.x & 0x1) | (self.y & 0x1) << 1 | (self.z & 0x1) << 2
172 }
173
174 #[inline]
175 fn any(self) -> bool {
176 ((self.x | self.y | self.z) & 0x1) != 0
177 }
178
179 #[inline]
180 fn all(self) -> bool {
181 ((self.x & self.y & self.z) & 0x1) != 0
182 }
183
184 #[inline]
185 fn into_bool_array(self) -> [bool; 3] {
186 [self.x != 0, self.y != 0, self.z != 0]
187 }
188
189 #[inline]
190 fn into_u32_array(self) -> [u32; 3] {
191 [self.x, self.y, self.z]
192 }
193 }
194
195 impl MaskVector4 for XYZW<u32> {
196 #[inline(always)]
197 fn new(x: bool, y: bool, z: bool, w: bool) -> Self {
198 // A SSE2 mask can be any bit pattern but for the `Vec4Mask` implementation of select
199 // we expect either 0 or 0xff_ff_ff_ff. This should be a safe assumption as this type
200 // can only be created via this function or by `Vec4` methods.
201 Self {
202 x: MaskConst::MASK[x as usize],
203 y: MaskConst::MASK[y as usize],
204 z: MaskConst::MASK[z as usize],
205 w: MaskConst::MASK[w as usize],
206 }
207 }
208
209 #[inline]
210 fn bitmask(self) -> u32 {
211 (self.x & 0x1) | (self.y & 0x1) << 1 | (self.z & 0x1) << 2 | (self.w & 0x1) << 3
212 }
213
214 #[inline]
215 fn any(self) -> bool {
216 ((self.x | self.y | self.z | self.w) & 0x1) != 0
217 }
218
219 #[inline]
220 fn all(self) -> bool {
221 ((self.x & self.y & self.z & self.w) & 0x1) != 0
222 }
223
224 #[inline]
225 fn into_bool_array(self) -> [bool; 4] {
226 [self.x != 0, self.y != 0, self.z != 0, self.w != 0]
227 }
228
229 #[inline]
230 fn into_u32_array(self) -> [u32; 4] {
231 [self.x, self.y, self.z, self.w]
232 }
233 }
234 */
235
236 // bool
237
238 impl MaskVectorConstrust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVectorConst# for XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<bool> {
239 const FALSErust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVectorConst]FALSE.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVectorConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVectorConst] { xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.: false, yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.: false };
240 }
241
242 impl MaskVectorConstrust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVectorConst# for XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<bool> {
243 const FALSErust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVectorConst]FALSE.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVectorConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVectorConst] {
244 xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.: false,
245 yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.: false,
246 zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.: false,
247 };
248 }
249
250 impl MaskVectorConstrust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVectorConst# for XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<bool> {
251 const FALSErust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVectorConst]FALSE.: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVectorConst] = Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVectorConst] {
252 xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x.: false,
253 yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y.: false,
254 zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z.: false,
255 wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.: false,
256 };
257 }
258
259 impl MaskVectorrust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVector# for XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<bool> {
260 #[inline]
261 fn bitandrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector]bitand().(self, other: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector]) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector] {
262 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector] {
263 xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.: self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x. && other.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.,
264 yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.: self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y. && other.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.,
265 }
266 }
267
268 #[inline]
269 fn bitorrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector]bitor().(self, other: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector]) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector] {
270 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector] {
271 xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.: self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x. || other.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.,
272 yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.: self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y. || other.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.,
273 }
274 }
275
276 #[inline]
277 fn notrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector]not().(self) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector] {
278 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector] {
279 xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.,
280 yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.,
281 }
282 }
283 }
284
285 impl MaskVectorrust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVector# for XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<bool> {
286 #[inline]
287 fn bitandrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector]bitand().(self, other: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector]) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector] {
288 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector] {
289 xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.: self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x. && other.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.,
290 yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.: self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y. && other.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.,
291 zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.: self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z. && other.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.,
292 }
293 }
294
295 #[inline]
296 fn bitorrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector]bitor().(self, other: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector]) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector] {
297 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector] {
298 xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.: self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x. || other.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.,
299 yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.: self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y. || other.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.,
300 zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.: self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z. || other.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.,
301 }
302 }
303
304 #[inline]
305 fn notrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector]not().(self) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector] {
306 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector] {
307 xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.,
308 yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.,
309 zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.,
310 }
311 }
312 }
313
314 impl MaskVectorrust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVector# for XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<bool> {
315 #[inline]
316 fn bitandrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector]bitand().(self, other: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector]) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector] {
317 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector] {
318 xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x.: self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x. && other.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x.,
319 yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y.: self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y. && other.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y.,
320 zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z.: self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z. && other.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z.,
321 wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.: self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w. && other.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.,
322 }
323 }
324
325 #[inline]
326 fn bitorrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector]bitor().(self, other: Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector]) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector] {
327 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector] {
328 xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x.: self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x. || other.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x.,
329 yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y.: self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y. || other.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y.,
330 zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z.: self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z. || other.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z.,
331 wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.: self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w. || other.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.,
332 }
333 }
334
335 #[inline]
336 fn notrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector]not().(self) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector] {
337 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector] {
338 xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x.,
339 yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y.,
340 zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z.,
341 wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.: !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.,
342 }
343 }
344 }
345
346 impl MaskVector2rust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVector2# for XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<bool> {
347 #[inline(always)]
348 fn newrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2]new().(x: bool, y: bool) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2] {
349 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2] { xrust-analyzer cargo glam 0.16.0 core/storage/XY#x., yrust-analyzer cargo glam 0.16.0 core/storage/XY#y. }
350 }
351
352 #[inline]
353 fn bitmaskrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2]bitmask().(self) -> u32 {
354 (self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().1
355 }
356
357 #[inline]
358 fn anyrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2]any().(self) -> bool {
359 self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x. || self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.
360 }
361
362 #[inline]
363 fn allrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2]all().(self) -> bool {
364 self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x. && self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.
365 }
366
367 #[inline]
368 fn into_bool_arrayrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2]into_bool_array().(self) -> [bool; 2] {
369 [self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x., self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.]
370 }
371
372 #[inline]
373 fn into_u32_arrayrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XY<bool>`][MaskVector2]into_u32_array().(self) -> [u32; 2] {
374 [
375 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
376 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
377 ]
378 }
379 }
380
381 impl MaskVector3rust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVector3# for XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<bool> {
382 #[inline(always)]
383 fn newrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3]new().(x: bool, y: bool, z: bool) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3] {
384 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3] { xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x., yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y., zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z. }
385 }
386
387 #[inline]
388 fn bitmaskrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3]bitmask().(self) -> u32 {
389 (self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().2
390 }
391
392 #[inline]
393 fn anyrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3]any().(self) -> bool {
394 self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x. || self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y. || self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.
395 }
396
397 #[inline]
398 fn allrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3]all().(self) -> bool {
399 self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x. && self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y. && self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.
400 }
401
402 #[inline]
403 fn into_bool_arrayrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3]into_bool_array().(self) -> [bool; 3] {
404 [self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x., self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y., self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.]
405 }
406
407 #[inline]
408 fn into_u32_arrayrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZ<bool>`][MaskVector3]into_u32_array().(self) -> [u32; 3] {
409 [
410 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
411 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
412 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
413 ]
414 }
415 }
416
417 impl MaskVector4rust-analyzer cargo glam 0.16.0 core/traits/vector/MaskVector4# for XYZWrust-analyzer cargo glam 0.16.0 core/storage/XYZW#<bool> {
418 #[inline(always)]
419 fn newrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4]new().(x: bool, y: bool, z: bool, w: bool) -> Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4] {
420 Selfrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4] { xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x., yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y., zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z., wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w. }
421 }
422
423 #[inline]
424 fn bitmaskrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4]bitmask().(self) -> u32 {
425 (self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().2 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOr<Self>`]bitor().(self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w. as u32) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().<<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shl<i32>`]shl().3
426 }
427
428 #[inline]
429 fn anyrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4]any().(self) -> bool {
430 self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x. || self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y. || self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z. || self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.
431 }
432
433 #[inline]
434 fn allrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4]all().(self) -> bool {
435 self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x. && self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y. && self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z. && self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.
436 }
437
438 #[inline]
439 fn into_bool_arrayrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4]into_bool_array().(self) -> [bool; 4] {
440 [self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x., self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y., self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z., self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w.]
441 }
442
443 #[inline]
444 fn into_u32_arrayrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[`XYZW<bool>`][MaskVector4]into_u32_array().(self) -> [u32; 4] {
445 [
446 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.xrust-analyzer cargo glam 0.16.0 core/storage/XYZW#x. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
447 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.yrust-analyzer cargo glam 0.16.0 core/storage/XYZW#y. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
448 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.zrust-analyzer cargo glam 0.16.0 core/storage/XYZW#z. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
449 MaskConstrust-analyzer cargo glam 0.16.0 core/traits/scalar/MaskConst#::MASKrust-analyzer cargo glam 0.16.0 core/scalar/mask/impl#[u32][MaskConst]MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().self.wrust-analyzer cargo glam 0.16.0 core/storage/XYZW#w. as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
450 ]
451 }
452 }