Struct primitives::foundation::ColorStop
source · [−]Expand description
Define the an offset and a color, to a given canvas gradient.
Fields
offset: f64
Reperesent the offset of color stop
color: Color
Reperesent the color
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin for ColorStop
impl UnwindSafe for ColorStop
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more