#[repr(C)]pub struct Ra2Color {
pub red: u8,
pub green: u8,
pub blue: u8,
}Expand description
The palette color used in game
Fields§
§red: u8red 5 bits
green: u8green 6 bits
blue: u8blue 5 bits
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ra2Color
impl<'de> Deserialize<'de> for Ra2Color
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
impl Copy for Ra2Color
Auto Trait Implementations§
impl Freeze for Ra2Color
impl RefUnwindSafe for Ra2Color
impl Send for Ra2Color
impl Sync for Ra2Color
impl Unpin for Ra2Color
impl UnwindSafe for Ra2Color
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