pub struct ColorStops<'a> {
stops: &'a [ColorStop],
var_stops: &'a [VarColorStop],
}
Expand description
Collection of ColorStop
or VarColorStop
.
Fields§
§stops: &'a [ColorStop]
§var_stops: &'a [VarColorStop]
Implementations§
Source§impl<'a> ColorStops<'a>
impl<'a> ColorStops<'a>
Sourcepub fn resolve(
&self,
instance: &'a ColrInstance<'a>,
) -> impl Iterator<Item = ResolvedColorStop> + 'a
pub fn resolve( &self, instance: &'a ColrInstance<'a>, ) -> impl Iterator<Item = ResolvedColorStop> + 'a
Returns an iterator yielding resolved color stops with variation deltas applied.
Trait Implementations§
Source§impl<'a> Clone for ColorStops<'a>
impl<'a> Clone for ColorStops<'a>
Source§fn clone(&self) -> ColorStops<'a>
fn clone(&self) -> ColorStops<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for ColorStops<'a>
impl<'a> RefUnwindSafe for ColorStops<'a>
impl<'a> Send for ColorStops<'a>
impl<'a> Sync for ColorStops<'a>
impl<'a> Unpin for ColorStops<'a>
impl<'a> UnwindSafe for ColorStops<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more