# Remove \`Pixels: Mul\<Pixels, Output = Pixels\>\` impl, add ScaledPixels ops \(\#27451\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9fc570c4be15ecec48536f622c93aea95bb81ed9)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9fc570c4be15ecec48536f622c93aea95bb81ed9

Requested commit: 9fc570c4be15ecec48536f622c93aea95bb81ed9

Commit: 9fc570c4be15ecec48536f622c93aea95bb81ed9

Tree: 96fa420245a0685a20f6701b0ba837a8fd3897d5

Author: Michael Sloan

Committer: GitHub

## Message

```
Remove `Pixels: Mul<Pixels, Output = Pixels>` impl, add ScaledPixels ops (#27451)

It doesn't make sense to have `Pixels: Mul<Pixels, Output = Pixels>` as
the output should be `Pixels^2` (area), so these impls are removed. All
code where these impls were used are improved by instead multiplying by
`f32` or `usize`.

Also adds math op impls that are present for `Pixels` but absent for
`ScaledPixels`. Adds missing `Mul<Pixels> for usize` to both.

Release Notes:

- N/A
```

## Parents

- [581d67398aa1e8a1e562fd8c02a853d85e901867](https://git.cafe/gitcafe/zed/commit/581d67398aa1e8a1e562fd8c02a853d85e901867?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9fc570c4be15ecec48536f622c93aea95bb81ed9?format=markdown)
