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.

Implementations on Foreign Types§

Source§

impl ColorStopsSource for &[DynamicColor]

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

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

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

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

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<T, const N: usize> ColorStopsSource for [T; N]
where T: Into<ColorStop>,

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)

Source§

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

Source§

fn collect_stops(self, stops: &mut ColorStops)

Source§

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

Source§

fn collect_stops(self, stops: &mut ColorStops)

Implementors§