pub struct ColorLine {
pub extend: Extend,
pub stops: Vec<ColorStop>,
}Expand description
A gradient colour line: extend mode plus the resolved stops, sorted
ascending by stop_offset. The sort happens after instance
stop-offset values are derived, as the spec requires for variable
fonts (“order is established after applying variation deltas”).
Fields§
§extend: ExtendBehaviour outside the defined stop range.
stops: Vec<ColorStop>Stops sorted ascending by stop_offset (stable sort — equal
offsets keep wire order).
Trait Implementations§
impl StructuralPartialEq for ColorLine
Auto Trait Implementations§
impl Freeze for ColorLine
impl RefUnwindSafe for ColorLine
impl Send for ColorLine
impl Sync for ColorLine
impl Unpin for ColorLine
impl UnsafeUnpin for ColorLine
impl UnwindSafe for ColorLine
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