pub struct LightColor {
pub r: u8,
pub g: u8,
pub b: u8,
pub intensity: u16,
}Fields§
§r: u8§g: u8§b: u8§intensity: u16Trait Implementations§
Source§impl Clone for LightColor
impl Clone for LightColor
Source§fn clone(&self) -> LightColor
fn clone(&self) -> LightColor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LightColor
impl Debug for LightColor
Source§impl<'de> Deserialize<'de> for LightColor
impl<'de> Deserialize<'de> for LightColor
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 FromStr for LightColor
impl FromStr for LightColor
impl FromStrProp for LightColor
Auto Trait Implementations§
impl Freeze for LightColor
impl RefUnwindSafe for LightColor
impl Send for LightColor
impl Sync for LightColor
impl Unpin for LightColor
impl UnwindSafe for LightColor
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