#[repr(C)]pub struct Color {
pub red: f64,
pub green: f64,
pub blue: f64,
pub alpha: f64,
}Expand description
A struct representing an RGBA color.
Used all over the place in RGSS.
Fields§
§red: f64§green: f64§blue: f64§alpha: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Color
impl<'de> Deserialize<'de> for Color
Source§fn deserialize<D>(deserializer: D) -> Result<Self, DeError>where
D: DeserializerTrait<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, DeError>where
D: DeserializerTrait<'de>,
Deserialize this value from the given deserializer.
Source§impl<'de> Deserialize<'de> for Color
impl<'de> Deserialize<'de> for Color
Source§fn 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
Source§impl From<Color> for ParameterType
impl From<Color> for ParameterType
Source§impl TryFrom<ParameterType> for Color
impl TryFrom<ParameterType> for Color
Source§type Error = ParameterType
type Error = ParameterType
The type returned in the event of a conversion error.
impl Copy for Color
impl Pod for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.