pub trait ColorStopsSource {
    // Required method
    fn collect_stops(&self, vec: &mut SmallVec<[ColorStop; 4]>);
}
Expand description

Trait for types that represent a source of color stops.

Required Methods§

source

fn collect_stops(&self, vec: &mut SmallVec<[ColorStop; 4]>)

Implementations on Foreign Types§

source§

impl ColorStopsSource for &[Color]

source§

fn collect_stops(&self, vec: &mut SmallVec<[ColorStop; 4]>)

source§

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

source§

fn collect_stops(&self, vec: &mut SmallVec<[ColorStop; 4]>)

source§

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

source§

fn collect_stops(&self, vec: &mut SmallVec<[ColorStop; 4]>)

source§

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

source§

fn collect_stops(&self, vec: &mut SmallVec<[ColorStop; 4]>)

Implementors§