pub trait ShapeExt: Sized {
// Provided methods
fn fill(self, style: impl Into<Style>) -> Fill<Self> { ... }
fn stroke(self, style: impl Into<Style>) -> Stroke<Self> { ... }
}
Expand description
An extension trait with various convenience methods for shapes.
Provided Methods§
fn fill(self, style: impl Into<Style>) -> Fill<Self>
fn stroke(self, style: impl Into<Style>) -> Stroke<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.