ImmutableGradientStop
struct · ferroui-base · v0.5.0
struct ImmutableGradientStop
Describes the location and color of a transition point in a gradient.
Members
new
fn new(offset: f64, color: Color) -> Self
Creates a gradient stop. The offset is clamped to [0, 1].
offset
fn offset(self: &Self) -> f64
The gradient stop offset.
color
fn color(self: &Self) -> Color
The gradient stop color.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqIGradientStop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.