- impl<const LANES: usize> From<BitMask<LANES>> for $name<LANES>
- where
- $bits_ty<LANES>: LanesAtMost32,
- BitMask<LANES>: LanesAtMost32,
- {
- fn from(value: BitMask<LANES>) -> Self {
- Self(value.into())
- }
- }
-
- impl<const LANES: usize> From<$name<LANES>> for crate::BitMask<LANES>
- where
- $bits_ty<LANES>: LanesAtMost32,
- BitMask<LANES>: LanesAtMost32,
- {
- fn from(value: $name<LANES>) -> Self {
- value.0.into()
- }
- }
-
- impl<const LANES: usize> From<$inner_ty<LANES>> for $name<LANES>
- where
- $bits_ty<LANES>: LanesAtMost32,
- {
- fn from(value: $inner_ty<LANES>) -> Self {
- Self(value)
- }
- }
-
- impl<const LANES: usize> From<$name<LANES>> for $inner_ty<LANES>
- where
- $bits_ty<LANES>: LanesAtMost32,
- {
- fn from(value: $name<LANES>) -> Self {
- value.0
- }
- }
-