pub struct LinearColorStop {
pub offset: OptionPercentageValue,
pub color: ColorU,
}
Fields§
§offset: OptionPercentageValue
§color: ColorU
Implementations§
Source§impl LinearColorStop
impl LinearColorStop
pub fn get_normalized_linear_stops( stops: &[LinearColorStop], ) -> Vec<NormalizedLinearColorStop>
Trait Implementations§
Source§impl Clone for LinearColorStop
impl Clone for LinearColorStop
Source§fn clone(&self) -> LinearColorStop
fn clone(&self) -> LinearColorStop
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinearColorStop
impl Debug for LinearColorStop
Source§impl Hash for LinearColorStop
impl Hash for LinearColorStop
Source§impl Ord for LinearColorStop
impl Ord for LinearColorStop
Source§fn cmp(&self, other: &LinearColorStop) -> Ordering
fn cmp(&self, other: &LinearColorStop) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LinearColorStop
impl PartialEq for LinearColorStop
Source§impl PartialOrd for LinearColorStop
impl PartialOrd for LinearColorStop
impl Copy for LinearColorStop
impl Eq for LinearColorStop
impl StructuralPartialEq for LinearColorStop
Auto Trait Implementations§
impl Freeze for LinearColorStop
impl RefUnwindSafe for LinearColorStop
impl Send for LinearColorStop
impl Sync for LinearColorStop
impl Unpin 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