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