pub struct Stop {
pub color: [f32; 4],
pub offset: f32,
}Expand description
A color stop.
Fields§
§color: [f32; 4]Linear color with straight alpha.
offset: f32Position along the gradient, from zero to one.
Implementations§
Trait Implementations§
impl Copy for Stop
impl StructuralPartialEq for Stop
Auto Trait Implementations§
impl Freeze for Stop
impl RefUnwindSafe for Stop
impl Send for Stop
impl Sync for Stop
impl Unpin for Stop
impl UnsafeUnpin for Stop
impl UnwindSafe for Stop
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