pub struct Tone {
pub red: f64,
pub green: f64,
pub blue: f64,
pub gray: f64,
}
Fields§
§red: f64
§green: f64
§blue: f64
§gray: f64
Trait Implementations§
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 FromValue<'_> for Tone
impl FromValue<'_> for Tone
Source§fn from_value(
ctx: &FromValueContext<'_>,
value: &Value,
) -> Result<Self, FromValueError>
fn from_value( ctx: &FromValueContext<'_>, value: &Value, ) -> Result<Self, FromValueError>
Create this type from the given value from the [
ValueArena
]. Read moreAuto 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