pub struct TextGradientStop {
pub offset: f32,
pub color: [f32; 4],
}Expand description
One color of a TextGradient.
Fields§
§offset: f32Position along the gradient, in 0..=1.
color: [f32; 4]Straight, sRGB-encoded RGBA in 0..=1.
Trait Implementations§
Source§impl Clone for TextGradientStop
impl Clone for TextGradientStop
impl Copy for TextGradientStop
Source§impl Debug for TextGradientStop
impl Debug for TextGradientStop
Source§impl PartialEq for TextGradientStop
impl PartialEq for TextGradientStop
impl StructuralPartialEq for TextGradientStop
Auto Trait Implementations§
impl Freeze for TextGradientStop
impl RefUnwindSafe for TextGradientStop
impl Send for TextGradientStop
impl Sync for TextGradientStop
impl Unpin for TextGradientStop
impl UnsafeUnpin for TextGradientStop
impl UnwindSafe for TextGradientStop
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