Conditionally swap `self` and `other` if `choice` is [`Choice::TRUE`].
(&mut self, other: &mut Self, choice: Choice)
| 32 | |
| 33 | /// Conditionally swap `self` and `other` if `choice` is [`Choice::TRUE`]. |
| 34 | fn ct_swap(&mut self, other: &mut Self, choice: Choice) { |
| 35 | let tmp = self.ct_select(other, choice); |
| 36 | *other = Self::ct_select(other, self, choice); |
| 37 | *self = tmp; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /// Implementing this trait enables use of the [`CtSelect`] trait to construct `[T; N]` where `T` |
nothing calls this directly
no test coverage detected