Skip to main content

ColorStopsSource

Trait ColorStopsSource 

Source
pub trait ColorStopsSource {
    // Required method
    fn collect_stops(self, stops: &mut ColorStops);
}
Expand description

Trait for types that represent a source of color stops.

Required Methods§

Source

fn collect_stops(self, stops: &mut ColorStops)

Append the stops represented within self into stops.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ColorStopsSource for &[DynamicColor]

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

impl<CS> ColorStopsSource for &[AlphaColor<CS>]
where CS: ColorSpace,

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

impl<CS> ColorStopsSource for &[OpaqueColor<CS>]
where CS: ColorSpace,

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

impl<T, const N: usize> ColorStopsSource for [T; N]
where T: Into<ColorStop>,

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

impl<T> ColorStopsSource for &[T]
where T: Into<ColorStop> + Copy,

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

impl<const N: usize, CS> ColorStopsSource for [AlphaColor<CS>; N]
where CS: ColorSpace,

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

impl<const N: usize, CS> ColorStopsSource for [OpaqueColor<CS>; N]
where CS: ColorSpace,

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

impl<const N: usize> ColorStopsSource for [DynamicColor; N]

Source§

fn collect_stops(self, stops: &mut ColorStops)

Implementors§