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