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