INNER CODE UNIT · Rust
draw_line
plotters-rs/plotters · plotters-backend/src/lib.rs:136
fn draw_line<S: BackendStyle>(
&mut self,
from: BackendCoord,
to: BackendCoord,
style: &S,
) -> Result<(), DrawingErrorKind<Self::ErrorType>> {
rasterizer::draw_line(self, from, to, style)
}
/// Draw a rectangle on the drawing backend
/// - `upper_left`: The coordinate of the upper-left corner of the rect
/// - `bottom_right`: The coordinate of the bottom-right corner of the rect
/// - `style`: The style
/// - `fill`: If the rectangle should be filled
fn draw_rect<S: BackendStyle>(
&mut self,
upper_left: BackendCoord,
bottom_right: BackendCoord,