pub struct Fill {
pub paint: Paint,
pub opacity: NormalizedF32,
pub rule: FillRule,
}
Expand description
A fill style.
Fields§
§paint: Paint
§opacity: NormalizedF32
§rule: FillRule
Implementations§
§impl Fill
impl Fill
pub fn from_paint(paint: Paint) -> Fill
pub fn from_paint(paint: Paint) -> Fill
Creates a Fill
from Paint
.
opacity
and rule
will be set to default values.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Fill
impl !Send for Fill
impl !Sync for Fill
impl Unpin for Fill
impl !UnwindSafe for Fill
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