Debian Codegraph @

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