pub struct Style {
pub stroke: Option<Color>,
pub fill: Option<Color>,
pub stroke_width: Option<f64>,
pub dash: Option<Vec<f64>>,
}Expand description
Visual style of an entity. Unset fields inherit from the layer, then the theme.
Fields§
§stroke: Option<Color>Stroke color.
fill: Option<Color>Fill color (regions only).
stroke_width: Option<f64>Stroke width in CSS pixels (screen-constant).
dash: Option<Vec<f64>>Dash pattern in CSS pixels.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Style
impl<'de> Deserialize<'de> for Style
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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