pub struct OffsetStop {
pub color: SolidColor,
pub offset: f32,
}Expand description
A gradient color at a set position.
Fields§
§color: SolidColorThe color.
offset: f32Where along the gradient, 0..=1.
Trait Implementations§
Source§impl Clone for OffsetStop
impl Clone for OffsetStop
Source§impl Debug for OffsetStop
impl Debug for OffsetStop
Source§impl<'de> Deserialize<'de> for OffsetStop
impl<'de> Deserialize<'de> for OffsetStop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OffsetStop
impl PartialEq for OffsetStop
Source§impl Serialize for OffsetStop
impl Serialize for OffsetStop
impl StructuralPartialEq for OffsetStop
Auto Trait Implementations§
impl Forget for OffsetStop
impl Freeze for OffsetStop
impl Move for OffsetStop
impl RefUnwindSafe for OffsetStop
impl Send for OffsetStop
impl Sync for OffsetStop
impl Unpin for OffsetStop
impl UnsafeUnpin for OffsetStop
impl UnwindSafe for OffsetStop
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