Struct graphics_style::LineStyle
source · [−]Expand description
Fields
line_width: Option<LineWidth>Represent the with of a line, default width is 1.0, see more in LineWidth.
line_color: Option<LineColor>Represent the color of a line, default color is black, see more in LineColor.
Trait Implementations
sourceimpl AddAssign<&'_ LineColor> for LineStyle
impl AddAssign<&'_ LineColor> for LineStyle
sourcefn add_assign(&mut self, rhs: &LineColor)
fn add_assign(&mut self, rhs: &LineColor)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ LineStyle> for LineStyle
impl AddAssign<&'_ LineStyle> for LineStyle
sourcefn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ LineWidth> for LineStyle
impl AddAssign<&'_ LineWidth> for LineStyle
sourcefn add_assign(&mut self, rhs: &LineWidth)
fn add_assign(&mut self, rhs: &LineWidth)
Performs the += operation. Read more
sourceimpl AddAssign<LineColor> for LineStyle
impl AddAssign<LineColor> for LineStyle
sourcefn add_assign(&mut self, rhs: LineColor)
fn add_assign(&mut self, rhs: LineColor)
Performs the += operation. Read more
sourceimpl AddAssign<LineStyle> for LineStyle
impl AddAssign<LineStyle> for LineStyle
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the += operation. Read more
sourceimpl AddAssign<LineWidth> for LineStyle
impl AddAssign<LineWidth> for LineStyle
sourcefn add_assign(&mut self, rhs: LineWidth)
fn add_assign(&mut self, rhs: LineWidth)
Performs the += operation. Read more
sourceimpl<'de> Deserialize<'de> for LineStyle
impl<'de> Deserialize<'de> for LineStyle
sourcefn 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
sourceimpl GraphicsStyle for LineStyle
impl GraphicsStyle for LineStyle
sourcefn draw_style(&self, state: &mut StyleContext)
fn draw_style(&self, state: &mut StyleContext)
Draws a shape with a style. Read more
impl Copy for LineStyle
impl StructuralPartialEq for LineStyle
Auto Trait Implementations
impl RefUnwindSafe for LineStyle
impl Send for LineStyle
impl Sync for LineStyle
impl Unpin for LineStyle
impl UnwindSafe for LineStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more