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