Struct style::properties::style_structs::Color
[−]
[src]
pub struct Color { pub color: T, }
The Color style struct.
Fields
color: T
The color computed value.
Methods
impl Color
[src]
pub fn set_color(&mut self, v: T)
[src]
Set color.
pub fn copy_color_from(&mut self, other: &Self)
[src]
Set color from other struct.
pub fn reset_color(&mut self, other: &Self)
[src]
Reset color from the initial struct.
pub fn clone_color(&self) -> T
[src]
Get the computed value for color.
Trait Implementations
impl Clone for Color
[src]
fn clone(&self) -> Color
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Color
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Color
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more