Trait ShapeExt

Source
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§

Source

fn fill(self, style: impl Into<Style>) -> Fill<Self>

Source

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.

Implementors§

Source§

impl<T> ShapeExt for T
where T: Shape,