| 1 | use craterust-analyzer cargo rgb 0.8.53 crate/::altrust-analyzer cargo rgb 0.8.53 legacy/alt/::ARGBrust-analyzer cargo rgb 0.8.53 formats/argb/Argb#; |
| 2 | use craterust-analyzer cargo rgb 0.8.53 crate/::altrust-analyzer cargo rgb 0.8.53 legacy/alt/::{BGRrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#, BGRArust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#}; |
| 3 | use craterust-analyzer cargo rgb 0.8.53 crate/::{RGBrust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#, RGBArust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#}; |
| 4 | |
| 5 | impl<T: Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<[T; 3]> for RGBrust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#<T> { |
| 6 | #[inline(always)] |
| 7 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`RGB<T>`][`From<[T; 3]>`]from().(other: [T; 3]) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`RGB<T>`][`From<[T; 3]>`] { |
| 8 | Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`RGB<T>`][`From<[T; 3]>`] { |
| 9 | rrust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#r.: other[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()., |
| 10 | grust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#g.: other[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()., |
| 11 | brust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#b.: other[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()., |
| 12 | } |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | impl<T> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<RGBrust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#<T>> for [T; 3] { |
| 17 | #[inline(always)] |
| 18 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 3]`][`From<RGB<T>>`]from().(value: RGBrust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#<T>) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 3]`][`From<RGB<T>>`] { |
| 19 | [value.rrust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#r., value.grust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#g., value.brust-analyzer cargo rgb 0.8.53 formats/rgb/Rgb#b.] |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | impl<T: Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<[T; 4]> for RGBArust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#<T> { |
| 24 | #[inline(always)] |
| 25 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`RGBA<T>`][`From<[T; 4]>`]from().(other: [T; 4]) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`RGBA<T>`][`From<[T; 4]>`] { |
| 26 | Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`RGBA<T>`][`From<[T; 4]>`] { |
| 27 | rrust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#r.: other[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()., |
| 28 | grust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#g.: other[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()., |
| 29 | brust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#b.: other[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()., |
| 30 | arust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#a.: other[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | impl<T> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<RGBArust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#<T>> for [T; 4] { |
| 36 | #[inline(always)] |
| 37 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 4]`][`From<RGBA<T>>`]from().(value: RGBArust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#<T>) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 4]`][`From<RGBA<T>>`] { |
| 38 | [value.rrust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#r., value.grust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#g., value.brust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#b., value.arust-analyzer cargo rgb 0.8.53 formats/rgba/Rgba#a.] |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | impl<T: Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<[T; 4]> for ARGBrust-analyzer cargo rgb 0.8.53 formats/argb/Argb#<T> { |
| 43 | #[inline(always)] |
| 44 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`ARGB<T>`][`From<[T; 4]>`]from().(other: [T; 4]) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`ARGB<T>`][`From<[T; 4]>`] { |
| 45 | Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`ARGB<T>`][`From<[T; 4]>`] { |
| 46 | arust-analyzer cargo rgb 0.8.53 formats/argb/Argb#a.: other[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()., |
| 47 | rrust-analyzer cargo rgb 0.8.53 formats/argb/Argb#r.: other[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()., |
| 48 | grust-analyzer cargo rgb 0.8.53 formats/argb/Argb#g.: other[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()., |
| 49 | brust-analyzer cargo rgb 0.8.53 formats/argb/Argb#b.: other[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | impl<T> Intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#<[T; 4]> for ARGBrust-analyzer cargo rgb 0.8.53 formats/argb/Argb#<T> { |
| 55 | #[inline(always)] |
| 56 | fn intorust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`ARGB<T>`][`Into<[T; 4]>`]into().(self) -> [T; 4] { |
| 57 | [self.arust-analyzer cargo rgb 0.8.53 formats/argb/Argb#a., self.rrust-analyzer cargo rgb 0.8.53 formats/argb/Argb#r., self.grust-analyzer cargo rgb 0.8.53 formats/argb/Argb#g., self.brust-analyzer cargo rgb 0.8.53 formats/argb/Argb#b.] |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | impl<T: Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<[T; 3]> for BGRrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#<T> { |
| 62 | #[inline(always)] |
| 63 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`BGR<T>`][`From<[T; 3]>`]from().(other: [T; 3]) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`BGR<T>`][`From<[T; 3]>`] { |
| 64 | Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`BGR<T>`][`From<[T; 3]>`] { |
| 65 | brust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#b.: other[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()., |
| 66 | grust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#g.: other[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()., |
| 67 | rrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#r.: other[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()., |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | impl<T> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BGRrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#<T>> for [T; 3] { |
| 73 | #[inline(always)] |
| 74 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 3]`][`From<BGR<T>>`]from().(value: BGRrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#<T>) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 3]`][`From<BGR<T>>`] { |
| 75 | [value.brust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#b., value.grust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#g., value.rrust-analyzer cargo rgb 0.8.53 formats/bgr/Bgr#r.] |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | impl<T: Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<[T; 4]> for BGRArust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#<T> { |
| 80 | #[inline(always)] |
| 81 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`BGRA<T>`][`From<[T; 4]>`]from().(other: [T; 4]) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`BGRA<T>`][`From<[T; 4]>`] { |
| 82 | Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`BGRA<T>`][`From<[T; 4]>`] { |
| 83 | brust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#b.: other[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()., |
| 84 | grust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#g.: other[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()., |
| 85 | rrust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#r.: other[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()., |
| 86 | arust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#a.: other[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | impl<T> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BGRArust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#<T>> for [T; 4] { |
| 92 | #[inline(always)] |
| 93 | fn fromrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 4]`][`From<BGRA<T>>`]from().(value: BGRArust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#<T>) -> Selfrust-analyzer cargo rgb 0.8.53 legacy/internal/convert/array/impl#[`[T; 4]`][`From<BGRA<T>>`] { |
| 94 | [value.brust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#b., value.grust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#g., value.rrust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#r., value.arust-analyzer cargo rgb 0.8.53 formats/bgra/Bgra#a.] |
| 95 | } |
| 96 | } |