pub trait ShapeStyle: Sized {
// Required methods
fn fill_mut(&mut self) -> &mut Option<Paint>;
fn stroke_mut(&mut self) -> &mut Option<Stroke>;
fn shadow_mut(&mut self) -> &mut Option<Shadow>;
// Provided methods
fn with_fill(self, fill: impl Into<Paint>) -> Self { ... }
fn with_stroke(self, stroke: Stroke) -> Self { ... }
fn with_shadow(self, shadow: Shadow) -> Self { ... }
}Required Methods§
fn fill_mut(&mut self) -> &mut Option<Paint>
fn stroke_mut(&mut self) -> &mut Option<Stroke>
fn shadow_mut(&mut self) -> &mut Option<Shadow>
Provided Methods§
fn with_fill(self, fill: impl Into<Paint>) -> Self
fn with_stroke(self, stroke: Stroke) -> Self
fn with_shadow(self, shadow: Shadow) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".