pub enum Paint {
Color(Color),
LinearGradient(Rc<LinearGradient>),
RadialGradient(Rc<RadialGradient>),
Pattern(Rc<RefCell<Pattern>>),
}
Expand description
A paint style.
paint
value type in the SVG.
Variants§
Color(Color)
LinearGradient(Rc<LinearGradient>)
RadialGradient(Rc<RadialGradient>)
Pattern(Rc<RefCell<Pattern>>)
Implementations§
Trait Implementations§
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