pub enum Paint {
Solid(PremulColor),
Indexed(IndexedPaint),
}
Expand description
A paint that is used internally by a rendering frontend to store how a wide tile command should be painted. There are only two types of paint:
- Simple solid colors, which are stored in premultiplied representation so that each wide tile doesn’t have to recompute it.
- Indexed paints, which can represent any arbitrary, more complex paint that is
determined by the frontend. The intended way of using this is to store a vector
of paints and store its index inside
IndexedPaint
.
Variants§
Solid(PremulColor)
A premultiplied RGBA8 color.
Indexed(IndexedPaint)
A paint that needs to be resolved via an index.
Trait Implementations§
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnwindSafe for Paint
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