Debian Codegraph @

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