Struct graphics_style::PointStyle
source · [−]pub struct PointStyle {
pub point_size: Option<PointSize>,
pub point_color: Option<PointColor>,
}Expand description
Represent the available style of a point.
Fields
point_size: Option<PointSize>Represent the size of a point, default size is 1.0, see more in PointSize.
point_color: Option<PointColor>Represent the color of a point, default color is black, see more in PointColor.
Trait Implementations
sourceimpl AddAssign<&'_ PointColor> for PointStyle
impl AddAssign<&'_ PointColor> for PointStyle
sourcefn add_assign(&mut self, rhs: &PointColor)
fn add_assign(&mut self, rhs: &PointColor)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ PointSize> for PointStyle
impl AddAssign<&'_ PointSize> for PointStyle
sourcefn add_assign(&mut self, rhs: &PointSize)
fn add_assign(&mut self, rhs: &PointSize)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ PointStyle> for PointStyle
impl AddAssign<&'_ PointStyle> for PointStyle
sourcefn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the += operation. Read more
sourceimpl AddAssign<PointColor> for PointStyle
impl AddAssign<PointColor> for PointStyle
sourcefn add_assign(&mut self, rhs: PointColor)
fn add_assign(&mut self, rhs: PointColor)
Performs the += operation. Read more
sourceimpl AddAssign<PointSize> for PointStyle
impl AddAssign<PointSize> for PointStyle
sourcefn add_assign(&mut self, rhs: PointSize)
fn add_assign(&mut self, rhs: PointSize)
Performs the += operation. Read more
sourceimpl AddAssign<PointStyle> for PointStyle
impl AddAssign<PointStyle> for PointStyle
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the += operation. Read more
sourceimpl Clone for PointStyle
impl Clone for PointStyle
sourcefn clone(&self) -> PointStyle
fn clone(&self) -> PointStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PointStyle
impl Debug for PointStyle
sourceimpl Default for PointStyle
impl Default for PointStyle
sourcefn default() -> PointStyle
fn default() -> PointStyle
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PointStyle
impl<'de> Deserialize<'de> for PointStyle
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 PointStyle
impl GraphicsStyle for PointStyle
sourcefn draw_style(&self, state: &mut StyleContext)
fn draw_style(&self, state: &mut StyleContext)
Draws a shape with a style. Read more
sourceimpl PartialEq<PointStyle> for PointStyle
impl PartialEq<PointStyle> for PointStyle
sourcefn eq(&self, other: &PointStyle) -> bool
fn eq(&self, other: &PointStyle) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PointStyle) -> bool
fn ne(&self, other: &PointStyle) -> bool
This method tests for !=.
sourceimpl Serialize for PointStyle
impl Serialize for PointStyle
impl Copy for PointStyle
impl StructuralPartialEq for PointStyle
Auto Trait Implementations
impl RefUnwindSafe for PointStyle
impl Send for PointStyle
impl Sync for PointStyle
impl Unpin for PointStyle
impl UnwindSafe for PointStyle
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