Debian Codegraph @

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