pub struct Drawing {
pub commands: Vec<DrawCommand>,
pub stroke: Option<Stroke>,
pub fill: Option<Color>,
}Expand description
Backend neutral drawing data using path commands.
Fields§
§commands: Vec<DrawCommand>Ordered path commands composing the drawing.
stroke: Option<Stroke>Stroke style, or None if the path is not stroked.
fill: Option<Color>Fill color, or None if the path is not filled.
Trait Implementations§
impl Eq for Drawing
impl StructuralPartialEq for Drawing
Auto Trait Implementations§
impl Freeze for Drawing
impl RefUnwindSafe for Drawing
impl Send for Drawing
impl Sync for Drawing
impl Unpin for Drawing
impl UnsafeUnpin for Drawing
impl UnwindSafe for Drawing
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