Skip to main content

ShapeStyle

Trait ShapeStyle 

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

Source

fn fill_mut(&mut self) -> &mut Option<Paint>

Source

fn stroke_mut(&mut self) -> &mut Option<Stroke>

Source

fn shadow_mut(&mut self) -> &mut Option<Shadow>

Provided Methods§

Source

fn with_fill(self, fill: impl Into<Paint>) -> Self

Source

fn with_stroke(self, stroke: Stroke) -> Self

Source

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".

Implementors§