pub trait ShapeExt: Shape + Sized {
// Provided methods
fn fill(self, color: impl Into<Color>) -> FilledShape { ... }
fn morph_to(
self,
target: impl ShapeExt,
fill: impl Into<Color>,
) -> MorphShape { ... }
}Expand description
Extension trait for filling shapes with color.
Provided Methods§
Sourcefn fill(self, color: impl Into<Color>) -> FilledShape
fn fill(self, color: impl Into<Color>) -> FilledShape
Fills the shape with the specified color.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".