Skip to main content

IntoFill

Trait IntoFill 

Source
pub trait IntoFill: Clone {
    type Pixel: Pixel;
    type Fill: Fill<Self::Pixel>;

    // Required method
    fn into_fill(self) -> Self::Fill;
}
Expand description

Any fill type that can be used to fill a shape, i.e. solid colors or gradients.

For solid colors, this trait is implemented for all Pixel types as SolidFill.

Required Associated Types§

Source

type Pixel: Pixel

The pixel type of the fill.

Source

type Fill: Fill<Self::Pixel>

The fill type.

Required Methods§

Source

fn into_fill(self) -> Self::Fill

Converts the fill into a fill type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§