Debian Codegraph @

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