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