Struct livesplit_core::settings::Color
[−]
[src]
pub struct Color { pub rgba: Rgba<f32>, }
Fields
rgba: Rgba<f32>
Methods
impl Color
[src]
fn transparent() -> Self
[src]
fn hsla(hue: f32, saturation: f32, lightness: f32, alpha: f32) -> Self
[src]
Trait Implementations
impl Copy for Color
[src]
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 PartialEq for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Color) -> bool
[src]
This method tests for !=
.
impl From<Rgba<f32>> for Color
[src]
impl From<[f32; 4]> for Color
[src]
impl From<(f32, f32, f32, f32)> for Color
[src]
impl Serialize for Color
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Color
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more