Debian Codegraph @

src/bitmap_pixel/bgrx.rs

raw symbols SCIP
1 use superrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/::pixel_formatrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/pixel_format/::blendrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/pixel_format/blend().;
2 use superrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/::PixelFormatrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/pixel_format/PixelFormat#;
3 use craterust-analyzer cargo plotters-bitmap 0.3.7 crate/::BitMapBackendrust-analyzer cargo plotters-bitmap 0.3.7 bitmap/BitMapBackend#;
4 use plotters_backendrust-analyzer cargo plotters-backend 0.3.7 crate/::DrawingBackendrust-analyzer cargo plotters-backend 0.3.7 DrawingBackend#;
5
6 /// The marker type that indicates we are currently using a BGRX8888 pixel format
7 pub struct BGRXPixelrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/BGRXPixel#;
8
9 impl PixelFormatrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/pixel_format/PixelFormat# for BGRXPixelrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/BGRXPixel# {
10 const PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.: usize = 4;
11 const EFFECTIVE_PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]EFFECTIVE_PIXEL_SIZE.: usize = 3;
12
13 #[inline(always)]
14 fn byte_atrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]byte_at().(r: u8, g: u8, b: u8, _a: u64, idx: usize) -> u8 {
15 match idx {
16 0 => b,
17 1 => g,
18 2 => r,
19 _ => 0xff,
20 }
21 }
22
23 #[inline(always)]
24 fn decode_pixelrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]decode_pixel().(data: &[u8]) -> (u8, u8, u8, u64) {
25 (data[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., data[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., data[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., 0x255)
26 }
27
28 #[allow(clippy::many_single_char_names, clippy::cast_ptr_alignment)]
29 fn blend_rect_fastrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]blend_rect_fast().(
30 target: &mut BitMapBackendrust-analyzer cargo plotters-bitmap 0.3.7 bitmap/BitMapBackend#<'_, Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]>,
31 upper_left: (i32, i32),
32 bottom_right: (i32, i32),
33 r: u8,
34 g: u8,
35 b: u8,
36 a: f64,
37 ) {
38 let (w, h) = target.get_sizerust-analyzer cargo plotters-bitmap 0.3.7 bitmap/impl#[`BitMapBackend<'a, P>`][DrawingBackend]get_size().();
39 let a = a.clamprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f64/impl#[f64]clamp().(0.0, 1.0);
40 if a rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[f64][`PartialEq<Self>`]eq().0.0 {
41 return;
42 }
43
44 let (x0, y0) = (
45 upper_left.0.minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(bottom_right.0).maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(0),
46 upper_left.1.minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(bottom_right.1).maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(0),
47 );
48 let (x1, y1) = (
49 upper_left.0.maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(bottom_right.0).minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(w as i32),
50 upper_left.1.maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(bottom_right.1).minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(h as i32),
51 );
52
53 // This may happen when the minimal value is larger than the limit.
54 // Thus we just have something that is completely out-of-range
55 if x0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().x1 || y0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().y1 {
56 return;
57 }
58
59 let dst = target.get_raw_pixel_bufferrust-analyzer cargo plotters-bitmap 0.3.7 bitmap/impl#[`BitMapBackend<'a, P>`]get_raw_pixel_buffer().();
60
61 let a = (256.0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f64][`Mul<Self>`]mul().a).floorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std f64/impl#[f64]floor().() as u64;
62
63 // Since we should always make sure the RGB payload occupies the logic lower bits
64 // thus, this type purning should work for both LE and BE CPUs
65 #[rustfmt::skip]
66 let p: u64 = unsafe {
67 stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().([
68 u16::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u16][`From<u8>`]from().(b), u16::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u16][`From<u8>`]from().(r), u16::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u16][`From<u8>`]from().(b), u16::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u16][`From<u8>`]from().(r), // QW1
69 ])
70 };
71
72 #[rustfmt::skip]
73 let q: u64 = unsafe {
74 stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().([
75 u16::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u16][`From<u8>`]from().(g), 0u16, u16::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/num/impl#[u16][`From<u8>`]from().(g), 0u16, // QW1
76 ])
77 };
78
79 const Nrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/N.: u64 = 0xff00_ff00_ff00_ff00;
80 const Mrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/M.: u64 = 0x00ff_00ff_00ff_00ff;
81
82 for y in y0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#y1 {
83 let start = (y rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().w as i32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().x0) as usize;
84 let count = (x1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub().x0) as usize;
85
86 let start_ptr = &mut dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). as *mut u8 as *mut [u8; 8];
87 let slice = unsafe { stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/::from_raw_parts_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/raw/from_raw_parts_mut().(start_ptr, (count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().1) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Div<Self>`]div().2) };
88 for rp in slice.iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().() {
89 let ptr = rp as *mut [u8; 8] as *mut u64;
90 let d1 = unsafe { ptr.read_unalignedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`]read_unaligned().() };
91 let mut h = (d1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shr<i32>`]shr().8) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().Mrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/M.;
92 let mut l = d1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().Mrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/M.;
93
94 #[cfg(target_endian = "little")]
95 {
96 h = (h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().(256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Sub<Self>`]sub().a) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().q rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().a) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().Nrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/N.;
97 l = ((l rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().(256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Sub<Self>`]sub().a) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Add<Self>`]add().p rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`Mul<Self>`]mul().a) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitAnd<Self>`]bitand().Nrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/N.) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`Shr<i32>`]shr().8;
98 }
99
100 #[cfg(target_endian = "big")]
101 {
102 h = (h * (256 - a) + p * a) & Nrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/N.;
103 l = ((l * (256 - a) + q * a) & Nrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/N.) >> 8;
104 }
105
106 unsafe {
107 ptr.write_unalignedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`]write_unaligned().(h rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitOr<Self>`]bitor().|rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitOr<Self>`]bitor(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u64][`BitOr<Self>`]bitor().l);
108 }
109 }
110
111 let mut iter = dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().((start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().slice.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().2) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.)
112 ..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#((start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().count) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.)]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().
113 .iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().();
114 for _ in (slice.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().2)..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#count {
115 blendrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/pixel_format/blend().(iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(), b, a);
116 blendrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/pixel_format/blend().(iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(), g, a);
117 blendrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/pixel_format/blend().(iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().(), r, a);
118 iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().();
119 }
120 }
121 }
122
123 #[allow(clippy::many_single_char_names, clippy::cast_ptr_alignment)]
124 fn fill_rect_fastrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]fill_rect_fast().(
125 target: &mut BitMapBackendrust-analyzer cargo plotters-bitmap 0.3.7 bitmap/BitMapBackend#<'_, Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]>,
126 upper_left: (i32, i32),
127 bottom_right: (i32, i32),
128 r: u8,
129 g: u8,
130 b: u8,
131 ) {
132 let (w, h) = target.get_sizerust-analyzer cargo plotters-bitmap 0.3.7 bitmap/impl#[`BitMapBackend<'a, P>`][DrawingBackend]get_size().();
133 let (x0, y0) = (
134 upper_left.0.minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(bottom_right.0).maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(0),
135 upper_left.1.minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(bottom_right.1).maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(0),
136 );
137 let (x1, y1) = (
138 upper_left.0.maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(bottom_right.0).minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(w as i32),
139 upper_left.1.maxrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#max().(bottom_right.1).minrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ord#min().(h as i32),
140 );
141
142 // This may happen when the minimal value is larger than the limit.
143 // Thus we just have something that is completely out-of-range
144 if x0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().x1 || y0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialOrd<Self>`]ge().y1 {
145 return;
146 }
147
148 let dst = target.get_raw_pixel_bufferrust-analyzer cargo plotters-bitmap 0.3.7 bitmap/impl#[`BitMapBackend<'a, P>`]get_raw_pixel_buffer().();
149
150 if r rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().g && g rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().b {
151 // If r == g == b, then we can use memset
152 if x0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().0 || x1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i32][`PartialEq<Self>`]ne().w as i32 {
153 // If it's not the entire row is filled, we can only do
154 // memset per row
155 for y in y0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#y1 {
156 let start = (y rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().w as i32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().x0) as usize;
157 let count = (x1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub().x0) as usize;
158 dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().(start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.)..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#((start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().count) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.)]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().
159 .iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().()
160 .for_eachrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]for_each().(|e| *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().e = r);
161 }
162 } else {
163 // If the entire memory block is going to be filled, just use single memset
164 dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().(y0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().w as i32) as usize
165 ..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#(y1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().w as i32) as usize rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().
166 .iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().()
167 .for_eachrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]for_each().(|e| *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().e = r);
168 }
169 } else {
170 let count = (x1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Sub<Self>`]sub().x0) as usize;
171 if count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]lt().8 {
172 for y in y0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#y1 {
173 let start = (y rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().w as i32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().x0) as usize;
174 let mut iter = dst
175 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().(start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.)..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#((start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().count) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.)]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().
176 .iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().();
177 for _ in 0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#count {
178 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().() = b;
179 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().() = g;
180 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap().() = r;
181 iter.nextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`IterMut<'a, T>`][Iterator]next().();
182 }
183 }
184 } else {
185 for y in y0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#y1 {
186 let start = (y rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Mul<Self>`]mul().w as i32 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][`Add<Self>`]add().x0) as usize;
187 let start_ptr = &mut dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). as *mut u8 as *mut [u8; 8];
188 let slice =
189 unsafe { stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/::from_raw_parts_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/raw/from_raw_parts_mut().(start_ptr, (count rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().1) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Div<Self>`]div()./rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Div<Self>`]div(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Div<Self>`]div().2) };
190 for p in slice.iter_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter_mut().() {
191 // In this case, we can actually fill 8 pixels in one iteration with
192 // only 3 movq instructions.
193 // TODO: Consider using AVX instructions when possible
194 let ptr = p as *mut [u8; 8] as *mut u64;
195 unsafe {
196 let d: u64 = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::transmuterust-analyzer cargo core https://github.com/rust-lang/rust/library/core intrinsics/transmute().([
197 b, g, r, 0, b, g, r, 0, // QW1
198 ]);
199 ptr.write_unalignedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/mut_ptr/impl#[`*mut T`]write_unaligned().(d);
200 }
201 }
202
203 for idx in (slice.lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().2)..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#count {
204 dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().idx rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE.]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = b;
205 dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().idx rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = g;
206 dst[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut().start rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().idx rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().Selfrust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]::PIXEL_SIZErust-analyzer cargo plotters-bitmap 0.3.7 bitmap_pixel/bgrx/impl#[BGRXPixel][PixelFormat]PIXEL_SIZE. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Add<Self>`]add().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/IndexMut#index_mut(). = r;
207 }
208 }
209 }
210 }
211 }
212 }