pub struct Stroke {
pub paint: Option<Variable<Paint>>,
pub width: Option<Variable<Length>>,
pub linecap: Option<Variable<StrokeLineCap>>,
pub linejoin: Option<Variable<StrokeLineJoin>>,
pub dasharray: Option<Variable<Vec<Length>>>,
pub dashoffset: Option<Variable<Length>>,
pub opacity: Option<Variable<f32>>,
}Expand description
This property affect how an element is stroked.
Fields§
§paint: Option<Variable<Paint>>§width: Option<Variable<Length>>§linecap: Option<Variable<StrokeLineCap>>§linejoin: Option<Variable<StrokeLineJoin>>§dasharray: Option<Variable<Vec<Length>>>§dashoffset: Option<Variable<Length>>§opacity: Option<Variable<f32>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stroke
impl<'de> Deserialize<'de> for Stroke
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
Source§impl Deserialize for Stroke
impl Deserialize for Stroke
type Value = Stroke
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer,
Derserialize this value from given
derserializer.Source§impl PartialOrd for Stroke
impl PartialOrd for Stroke
impl StructuralPartialEq for Stroke
Auto Trait Implementations§
impl Freeze for Stroke
impl RefUnwindSafe for Stroke
impl Send for Stroke
impl Sync for Stroke
impl Unpin for Stroke
impl UnwindSafe for Stroke
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