pub struct PolyColor {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
Simple, JSON-Serializable color
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PolyColor
impl<'de> Deserialize<'de> for PolyColor
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 PartialOrd for PolyColor
impl PartialOrd for PolyColor
impl Copy for PolyColor
impl StructuralPartialEq for PolyColor
Auto Trait Implementations§
impl Freeze for PolyColor
impl RefUnwindSafe for PolyColor
impl Send for PolyColor
impl Sync for PolyColor
impl Unpin for PolyColor
impl UnwindSafe for PolyColor
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