Enum ttf_parser::colr::Paint
source · pub enum Paint<'a> {
Solid(RgbaColor),
LinearGradient(LinearGradient<'a>),
RadialGradient(RadialGradient<'a>),
SweepGradient(SweepGradient<'a>),
}
Expand description
A paint.
Variants§
Solid(RgbaColor)
A paint with a solid color.
LinearGradient(LinearGradient<'a>)
A paint with a linear gradient.
RadialGradient(RadialGradient<'a>)
A paint with a radial gradient.
SweepGradient(SweepGradient<'a>)
A paint with a sweep gradient.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Paint<'a>
impl<'a> RefUnwindSafe for Paint<'a>
impl<'a> Send for Paint<'a>
impl<'a> Sync for Paint<'a>
impl<'a> Unpin for Paint<'a>
impl<'a> UnwindSafe for Paint<'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