pub struct ResolvedColorStop {
pub offset: f32,
pub palette_index: u16,
pub alpha: f32,
}
Expand description
Simplified version of a ColorStop
or VarColorStop
with applied
variation deltas.
Fields§
§offset: f32
§palette_index: u16
§alpha: f32
Trait Implementations§
Source§impl Clone for ResolvedColorStop
impl Clone for ResolvedColorStop
Source§fn clone(&self) -> ResolvedColorStop
fn clone(&self) -> ResolvedColorStop
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 moreSource§impl Debug for ResolvedColorStop
impl Debug for ResolvedColorStop
Source§impl From<ResolvedColorStop> for ColorStop
impl From<ResolvedColorStop> for ColorStop
Source§fn from(resolved_stop: ResolvedColorStop) -> Self
fn from(resolved_stop: ResolvedColorStop) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResolvedColorStop
impl RefUnwindSafe for ResolvedColorStop
impl Send for ResolvedColorStop
impl Sync for ResolvedColorStop
impl Unpin for ResolvedColorStop
impl UnwindSafe for ResolvedColorStop
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