pub enum Brush {
Solid(Color),
Gradient(Gradient),
Image(Image),
}
Expand description
Describes the color content of a filled or stroked shape.
See also BrushRef
which can be used to avoid allocations.
Variants§
Trait Implementations§
source§impl PartialEq for Brush
impl PartialEq for Brush
impl StructuralPartialEq for Brush
Auto Trait Implementations§
impl !RefUnwindSafe for Brush
impl Send for Brush
impl Sync for Brush
impl Unpin for Brush
impl !UnwindSafe for Brush
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