#[repr(C)]pub struct Tone {
pub red: f64,
pub green: f64,
pub blue: f64,
pub gray: f64,
}Expand description
A struct representing an offset to an RGBA color.
Its members are f64 but must not exceed the range of 255..-255.
Fields§
§red: f64§green: f64§blue: f64§gray: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tone
impl<'de> Deserialize<'de> for Tone
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 Tone
impl<'de> Deserialize<'de> for Tone
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<Tone> for ParameterType
impl From<Tone> for ParameterType
Source§impl TryFrom<ParameterType> for Tone
impl TryFrom<ParameterType> for Tone
Source§type Error = ParameterType
type Error = ParameterType
The type returned in the event of a conversion error.
impl Copy for Tone
impl Pod for Tone
impl StructuralPartialEq for Tone
Auto Trait Implementations§
impl Freeze for Tone
impl RefUnwindSafe for Tone
impl Send for Tone
impl Sync for Tone
impl Unpin for Tone
impl UnwindSafe for Tone
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.