Struct ttf_parser::tables::colr::VarColorLine
source · struct VarColorLine<'a> {
extend: GradientExtend,
colors: LazyArray16<'a, VarColorStopRaw>,
palettes: Table<'a>,
foreground_color: RgbaColor,
}
Fields§
§extend: GradientExtend
§colors: LazyArray16<'a, VarColorStopRaw>
§palettes: Table<'a>
§foreground_color: RgbaColor
Implementations§
source§impl VarColorLine<'_>
impl VarColorLine<'_>
fn get( &self, palette: u16, index: u16, variation_data: VariationData<'_>, coordinates: &[NormalizedCoordinate], ) -> Option<ColorStop>
Trait Implementations§
source§impl<'a> Clone for VarColorLine<'a>
impl<'a> Clone for VarColorLine<'a>
source§fn clone(&self) -> VarColorLine<'a>
fn clone(&self) -> VarColorLine<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for VarColorLine<'a>
impl<'a> RefUnwindSafe for VarColorLine<'a>
impl<'a> Send for VarColorLine<'a>
impl<'a> Sync for VarColorLine<'a>
impl<'a> Unpin for VarColorLine<'a>
impl<'a> UnwindSafe for VarColorLine<'a>
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)