Debian Codegraph @

debian/missing-sources/glam-0.25.0/src/bool/sse2/bvec4a.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 #[repr(C)]
13 union UnionCastrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/UnionCast# {
14 arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/UnionCast#a.: [u32; 4],
15 vrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/UnionCast#v.: BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#,
16 }
17
18 /// A 4-dimensional SIMD vector mask.
19 ///
20 /// This type is 16 byte aligned.
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 BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#(pub(craterust-analyzer cargo glam 0.25.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.25.0 bool/sse2/bvec4a/MASK.: [u32; 2] = [0, 0xff_ff_ff_ff];
26
27 impl BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
28 /// All false.
29 pub const FALSErust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]FALSE.: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A] = Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]::splatrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]splat().(false);
30
31 /// All true.
32 pub const TRUErust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]TRUE.: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A] = Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]::splatrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]splat().(true);
33
34 /// Creates a new vector mask.
35 #[inline(always)]
36 #[must_use]
37 pub const fn newrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]new().(x: bool, y: bool, z: bool, w: bool) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A] {
38 unsafe {
39 UnionCastrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/UnionCast# {
40 arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/UnionCast#a.: [
41 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/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().,
42 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/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().,
43 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/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().,
44 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().w as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
45 ],
46 }
47 .vrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/UnionCast#v.
48 }
49 }
50
51 /// Creates a vector with all elements set to `v`.
52 #[inline]
53 #[must_use]
54 pub const fn splatrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]splat().(v: bool) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A] {
55 Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]::newrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]new().(v, v, v, v)
56 }
57
58 /// Returns a bitmask with the lowest 4 bits set from the elements of `self`.
59 ///
60 /// A true element results in a `1` bit and a false element in a `0` bit. Element `x` goes
61 /// into the first lowest bit, element `y` into the second, etc.
62 #[inline]
63 #[must_use]
64 pub fn bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().(self) -> u32 {
65 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.25.0 bool/sse2/bvec4a/BVec4A#0.) as u32 }
66 }
67
68 /// Returns true if any of the elements are true, false otherwise.
69 #[inline]
70 #[must_use]
71 pub fn anyrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]any().(self) -> bool {
72 self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]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
73 }
74
75 /// Returns true if all the elements are true, false otherwise.
76 #[inline]
77 #[must_use]
78 pub fn allrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]all().(self) -> bool {
79 self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]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().0xf
80 }
81
82 /// Tests the value at `index`.
83 ///
84 /// Panics if `index` is greater than 3.
85 #[inline]
86 #[must_use]
87 pub fn testrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]test().(&self, index: usize) -> bool {
88 match index {
89 0 => (self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]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 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().0)) 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,
90 1 => (self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]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 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 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,
91 2 => (self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]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 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 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,
92 3 => (self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]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 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)) 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,
93 _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("index out of bounds"),
94 }
95 }
96
97 /// Sets the element at `index`.
98 ///
99 /// Panics if `index` is greater than 3.
100 #[inline]
101 pub fn setrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]set().(&mut self, index: usize, value: bool) {
102 use craterust-analyzer cargo glam 0.25.0 crate/::Vec4rust-analyzer cargo glam 0.25.0 f32/sse2/vec4/Vec4#;
103 let mut v = Vec4rust-analyzer cargo glam 0.25.0 f32/sse2/vec4/Vec4#(self.0rust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#0.);
104 v[rust-analyzer cargo glam 0.25.0 f32/sse2/vec4/impl#[Vec4][`IndexMut<usize>`]index_mut().index]rust-analyzer cargo glam 0.25.0 f32/sse2/vec4/impl#[Vec4][`IndexMut<usize>`]index_mut(). = f32::from_bitsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]from_bits().(MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().value as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
105 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A](v.0rust-analyzer cargo glam 0.25.0 f32/sse2/vec4/Vec4#0.);
106 }
107
108 #[inline]
109 #[must_use]
110 fn into_bool_arrayrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]into_bool_array().(self) -> [bool; 4] {
111 let bitmask = self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().();
112 [
113 (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,
114 (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,
115 (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,
116 (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().8) 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,
117 ]
118 }
119
120 #[inline]
121 #[must_use]
122 fn into_u32_arrayrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]into_u32_array().(self) -> [u32; 4] {
123 let bitmask = self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().();
124 [
125 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/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().,
126 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/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().,
127 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/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().,
128 MASKrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/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().3) 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().,
129 ]
130 }
131 }
132
133 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
134 #[inline]
135 fn defaultrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][Default]default().() -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][Default] {
136 Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][Default]::FALSErust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]FALSE.
137 }
138 }
139
140 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
141 #[inline]
142 fn eqrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`PartialEq<Self>`]eq().(&self, rhs: &Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`PartialEq<Self>`]) -> bool {
143 self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]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.25.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().())
144 }
145 }
146
147 impl Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {}
148
149 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 BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
150 #[inline]
151 fn hashrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][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) {
152 self.bitmaskrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().().hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/impls/impl#[u32][Hash]hash().(state);
153 }
154 }
155
156 impl BitAndrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitAnd# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
157 type Outputrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]Output# = Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`];
158 #[inline]
159 fn bitandrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]bitand().(self, rhs: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`] {
160 Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`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.25.0 bool/sse2/bvec4a/BVec4A#0., rhs.0rust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#0.) })
161 }
162 }
163
164 impl BitAndAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitAndAssign# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
165 #[inline]
166 fn bitand_assignrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAndAssign<Self>`]bitand_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAndAssign<Self>`]) {
167 *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.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]bitand().(rhs);
168 }
169 }
170
171 impl BitOrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitOr# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
172 type Outputrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]Output# = Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`];
173 #[inline]
174 fn bitorrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]bitor().(self, rhs: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`] {
175 Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`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.25.0 bool/sse2/bvec4a/BVec4A#0., rhs.0rust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#0.) })
176 }
177 }
178
179 impl BitOrAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitOrAssign# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
180 #[inline]
181 fn bitor_assignrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOrAssign<Self>`]bitor_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOrAssign<Self>`]) {
182 *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.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]bitor().(rhs);
183 }
184 }
185
186 impl BitXorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitXor# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
187 type Outputrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]Output# = Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`];
188 #[inline]
189 fn bitxorrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]bitxor().(self, rhs: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`] {
190 Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`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.25.0 bool/sse2/bvec4a/BVec4A#0., rhs.0rust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#0.) })
191 }
192 }
193
194 impl BitXorAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitXorAssign# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
195 #[inline]
196 fn bitxor_assignrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXorAssign<Self>`]bitxor_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXorAssign<Self>`]) {
197 *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.25.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]bitxor().(rhs);
198 }
199 }
200
201 impl Notrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/Not# for BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
202 type Outputrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][Not]Output# = Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][Not];
203 #[inline]
204 fn notrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][Not]not().(self) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][Not] {
205 Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][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.25.0 bool/sse2/bvec4a/BVec4A#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))) })
206 }
207 }
208
209 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#> for __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
210 #[inline]
211 fn fromrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[__m128][`From<BVec4A>`]from().(t: BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[__m128][`From<BVec4A>`] {
212 t.0rust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#0.
213 }
214 }
215
216 #[cfg(not(target_arch = "spirv"))]
217 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 BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
218 fn fmtrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][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# {
219 let arr = self.into_u32_arrayrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]into_u32_array().();
220 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(
221 f,
222 "{}({:#x}, {:#x}, {:#x}, {:#x})",
223 stringifyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/stringify!!(BVec4A),
224 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().,
225 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().,
226 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().,
227 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().
228 )
229 }
230 }
231
232 #[cfg(not(target_arch = "spirv"))]
233 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 BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A# {
234 fn fmtrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A][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# {
235 let arr = self.into_bool_arrayrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]into_bool_array().();
236 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()., arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().)
237 }
238 }
239
240 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#> for [bool; 4] {
241 #[inline]
242 fn fromrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[`[bool; 4]`][`From<BVec4A>`]from().(mask: BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[`[bool; 4]`][`From<BVec4A>`] {
243 mask.into_bool_arrayrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]into_bool_array().()
244 }
245 }
246
247 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#> for [u32; 4] {
248 #[inline]
249 fn fromrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[`[u32; 4]`][`From<BVec4A>`]from().(mask: BVec4Arust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/BVec4A#) -> Selfrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[`[u32; 4]`][`From<BVec4A>`] {
250 mask.into_u32_arrayrust-analyzer cargo glam 0.25.0 bool/sse2/bvec4a/impl#[BVec4A]into_u32_array().()
251 }
252 }