MCPcopy Index your code
hub / github.com/endbasic/endbasic / op

Method op

std/src/gfx/lcd/buffered/testutils.rs:118–124  ·  view source on GitHub ↗

Executes an operation on the backing `LcdRecorder`.

(mut self, op: F)

Source from the content-addressed store, hash-verified

116
117 /// Executes an operation on the backing `LcdRecorder`.
118 pub(super) fn op<F>(mut self, op: F) -> Self
119 where
120 F: Fn(&mut BufferedLcd<LcdRecorder>),
121 {
122 op(&mut self.buffered);
123 self
124 }
125
126 /// Records that the pixel `xy` should be `rgb` after all `op`s have been executed.
127 pub(super) fn expect_pixel(mut self, xy: LcdXY, rgb: RGB) -> Self {

Callers 15

test_fill_one_pixel_syncFunction · 0.80
test_fill_rect_syncFunction · 0.80
test_fill_rect_no_syncFunction · 0.80
test_clearFunction · 0.80
test_present_canvasFunction · 0.80
test_read_pixels_syncFunction · 0.80
test_read_pixels_no_syncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected