#[repr(C)]pub struct LinearColorStop {
pub color: Hsla,
pub percentage: f32,
}Expand description
A color stop in a linear gradient.
https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient#linear-color-stop
Fields§
§color: HslaThe color of the color stop.
percentage: f32The percentage of the gradient, in the range 0.0 to 1.0.
Implementations§
Trait Implementations§
Source§impl Clone for LinearColorStop
impl Clone for LinearColorStop
impl Copy for LinearColorStop
Source§impl Debug for LinearColorStop
impl Debug for LinearColorStop
Source§impl Default for LinearColorStop
impl Default for LinearColorStop
Source§impl<'de> Deserialize<'de> for LinearColorStop
impl<'de> Deserialize<'de> for LinearColorStop
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 LinearColorStop
impl PartialEq for LinearColorStop
Source§impl Serialize for LinearColorStop
impl Serialize for LinearColorStop
impl StructuralPartialEq for LinearColorStop
Auto Trait Implementations§
impl Forget for LinearColorStop
impl Freeze for LinearColorStop
impl Move for LinearColorStop
impl RefUnwindSafe for LinearColorStop
impl Send for LinearColorStop
impl Sync for LinearColorStop
impl Unpin for LinearColorStop
impl UnsafeUnpin for LinearColorStop
impl UnwindSafe for LinearColorStop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more