INNER CODE UNIT · Rust
present
plotters-rs/plotters · plotters-backend/src/lib.rs:121
fn present(&mut self) -> Result<(), DrawingErrorKind<Self::ErrorType>>;
/// Draw a pixel on the drawing backend
/// - `point`: The backend pixel-based coordinate to draw
/// - `color`: The color of the pixel
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,