Return the image of self across the derived function func.
(&self, derived_func: DerivedFunc)
| 406 | |
| 407 | /// Return the image of self across the derived function func. |
| 408 | fn image(&self, derived_func: DerivedFunc) -> TypeSet { |
| 409 | match derived_func { |
| 410 | DerivedFunc::LaneOf => self.lane_of(), |
| 411 | DerivedFunc::AsTruthy => self.as_truthy(), |
| 412 | DerivedFunc::HalfWidth => self.half_width(), |
| 413 | DerivedFunc::DoubleWidth => self.double_width(), |
| 414 | DerivedFunc::SplitLanes => self.half_width().double_vector(), |
| 415 | DerivedFunc::MergeLanes => self.double_width().half_vector(), |
| 416 | DerivedFunc::DynamicToVector => self.dynamic_to_vector(), |
| 417 | DerivedFunc::Narrower => self.clone(), |
| 418 | DerivedFunc::Wider => self.clone(), |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | /// Return a TypeSet describing the image of self across lane_of. |
| 423 | fn lane_of(&self) -> TypeSet { |
no test coverage detected