Struct graphics_style::LineWidth
source · [−]pub struct LineWidth {
pub value: f32,
}Expand description
Represent the with of a line, default width is 1.0
Fields
value: f32Actual value for StyleResolver::line_width
Trait Implementations
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<&'_ LineWidth> for StyleContext
impl AddAssign<&'_ LineWidth> for StyleContext
sourcefn add_assign(&mut self, rhs: &LineWidth)
fn add_assign(&mut self, rhs: &LineWidth)
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<LineWidth> for StyleContext
impl AddAssign<LineWidth> for StyleContext
sourcefn add_assign(&mut self, rhs: LineWidth)
fn add_assign(&mut self, rhs: LineWidth)
Performs the += operation. Read more
sourceimpl<'de> Deserialize<'de> for LineWidth
impl<'de> Deserialize<'de> for LineWidth
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 LineWidth
impl GraphicsStyle for LineWidth
sourcefn draw_style(&self, state: &mut StyleContext)
fn draw_style(&self, state: &mut StyleContext)
Draws a shape with a style. Read more
sourceimpl PartialOrd<f32> for LineWidth
impl PartialOrd<f32> for LineWidth
sourcefn partial_cmp(&self, other: &f32) -> Option<Ordering>
fn partial_cmp(&self, other: &f32) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for LineWidth
impl StructuralPartialEq for LineWidth
Auto Trait Implementations
impl RefUnwindSafe for LineWidth
impl Send for LineWidth
impl Sync for LineWidth
impl Unpin for LineWidth
impl UnwindSafe for LineWidth
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)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more