pub enum AtlasPaint {
Solid(AlphaColor<Srgb>),
Gradient(Gradient),
}Expand description
Paint type for atlas commands.
Variants§
Solid(AlphaColor<Srgb>)
A solid colour (used for outlines and COLR solid fills).
Gradient(Gradient)
A gradient (used for COLR gradient fills).
Trait Implementations§
Source§impl Clone for AtlasPaint
impl Clone for AtlasPaint
Source§fn clone(&self) -> AtlasPaint
fn clone(&self) -> AtlasPaint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AtlasPaint
impl Debug for AtlasPaint
Source§impl From<AlphaColor<Srgb>> for AtlasPaint
impl From<AlphaColor<Srgb>> for AtlasPaint
Source§fn from(c: AlphaColor<Srgb>) -> Self
fn from(c: AlphaColor<Srgb>) -> Self
Converts to this type from the input type.
Source§impl From<AtlasPaint> for PaintType
impl From<AtlasPaint> for PaintType
Source§fn from(paint: AtlasPaint) -> Self
fn from(paint: AtlasPaint) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AtlasPaint
impl RefUnwindSafe for AtlasPaint
impl Send for AtlasPaint
impl Sync for AtlasPaint
impl Unpin for AtlasPaint
impl UnsafeUnpin for AtlasPaint
impl UnwindSafe for AtlasPaint
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