pub struct GraphicProperties {
pub fill: Option<Color>,
pub stroke: Option<Color>,
pub stroke_width: Option<Length>,
}Expand description
How a shape is filled and outlined.
Fields§
§fill: Option<Color>Fill colour, absent when the fill is none.
stroke: Option<Color>Outline colour.
stroke_width: Option<Length>Outline width.
Trait Implementations§
Source§impl Clone for GraphicProperties
impl Clone for GraphicProperties
Source§fn clone(&self) -> GraphicProperties
fn clone(&self) -> GraphicProperties
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphicProperties
impl Debug for GraphicProperties
Source§impl Default for GraphicProperties
impl Default for GraphicProperties
Source§fn default() -> GraphicProperties
fn default() -> GraphicProperties
Returns the “default value” for a type. Read more
Source§impl PartialEq for GraphicProperties
impl PartialEq for GraphicProperties
impl StructuralPartialEq for GraphicProperties
Auto Trait Implementations§
impl Freeze for GraphicProperties
impl RefUnwindSafe for GraphicProperties
impl Send for GraphicProperties
impl Sync for GraphicProperties
impl Unpin for GraphicProperties
impl UnsafeUnpin for GraphicProperties
impl UnwindSafe for GraphicProperties
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