INNER CODE UNIT · Rust
draw_pixel
plotters-rs/plotters · plotters-backend/src/lib.rs:126
fn draw_pixel(
&mut self,
point: BackendCoord,
color: BackendColor,
) -> Result<(), DrawingErrorKind<Self::ErrorType>>;
/// Draw a line on the drawing backend
/// - `from`: The start point of the line
/// - `to`: The end point of the line
/// - `style`: The style of the line
fn draw_line<S: BackendStyle>(
&mut self,
from: BackendCoord,
to: BackendCoord,
style: &S,
) -> Result<(), DrawingErrorKind<Self::ErrorType>> {
rasterizer::draw_line(self, from, to, style)
}