pub struct Fill {
pub style: Style,
pub rule: Rule,
}Available on crate feature
canvas only.Expand description
The style used to fill geometry.
Fields§
§style: StyleThe color or gradient of the fill.
By default, it is set to Style::Solid with Color::BLACK.
rule: RuleThe fill rule defines how to determine what is inside and what is outside of a shape.
See the SVG specification for more details.
By default, it is set to NonZero.
Trait Implementations§
impl Copy for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin 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