pub struct Pixels<'a> { /* private fields */ }Expand description
The canvas as half-block pixels, two per cell (top and bottom); see
Canvas::pixels.
Implementations§
Trait Implementations§
Source§impl Shapes for Pixels<'_>
impl Shapes for Pixels<'_>
Source§fn put(&mut self, x: i64, y: i64, colour: Rgb)
fn put(&mut self, x: i64, y: i64, colour: Rgb)
Sets one point; outside the surface it does nothing.
fn line(&mut self, x0: i64, y0: i64, x1: i64, y1: i64, colour: Rgb)
fn rect(&mut self, x: i64, y: i64, w: i64, h: i64, colour: Rgb)
fn fill_rect(&mut self, x: i64, y: i64, w: i64, h: i64, colour: Rgb)
fn circle(&mut self, cx: i64, cy: i64, r: i64, colour: Rgb)
fn fill_circle(&mut self, cx: i64, cy: i64, r: i64, colour: Rgb)
Auto Trait Implementations§
impl<'a> !UnwindSafe for Pixels<'a>
impl<'a> Forget for Pixels<'a>
impl<'a> Freeze for Pixels<'a>
impl<'a> Move for Pixels<'a>
impl<'a> RefUnwindSafe for Pixels<'a>
impl<'a> Send for Pixels<'a>
impl<'a> Sync for Pixels<'a>
impl<'a> Unpin for Pixels<'a>
impl<'a> UnsafeUnpin for Pixels<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more