pub trait DrawPath: Context2DData {
// Provided methods
fn begin_path(&self) { ... }
fn end_path(&self) { ... }
fn move_to(&self, p: Point<i32>) { ... }
fn line_to(&self, p: Point<i32>) { ... }
fn arc_to(&self, rect: Rect<i32>, p1: Point<i32>, p2: Point<i32>) { ... }
fn poly_bezier_to(&self, points: &[Point<i32>]) { ... }
fn polyline_to(&self, points: &[Point<i32>]) { ... }
fn close_figure(&self) { ... }
}Provided Methods§
fn begin_path(&self)
fn end_path(&self)
fn move_to(&self, p: Point<i32>)
fn line_to(&self, p: Point<i32>)
fn arc_to(&self, rect: Rect<i32>, p1: Point<i32>, p2: Point<i32>)
fn poly_bezier_to(&self, points: &[Point<i32>])
fn polyline_to(&self, points: &[Point<i32>])
fn close_figure(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".