Debian Codegraph @

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