Debian Codegraph @

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