pub struct ColorEntry {
pub value: u16,
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
Color table entry
Fields§
§value: u16Color value (index)
r: u8Red component (0-255)
g: u8Green component (0-255)
b: u8Blue component (0-255)
a: u8Alpha component (0-255)
Implementations§
Trait Implementations§
Source§impl Clone for ColorEntry
impl Clone for ColorEntry
Source§fn clone(&self) -> ColorEntry
fn clone(&self) -> ColorEntry
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 ColorEntry
impl Debug for ColorEntry
Source§impl<'de> Deserialize<'de> for ColorEntry
impl<'de> Deserialize<'de> for ColorEntry
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 PartialEq for ColorEntry
impl PartialEq for ColorEntry
Source§impl Serialize for ColorEntry
impl Serialize for ColorEntry
impl Copy for ColorEntry
impl Eq for ColorEntry
impl StructuralPartialEq for ColorEntry
Auto Trait Implementations§
impl Freeze for ColorEntry
impl RefUnwindSafe for ColorEntry
impl Send for ColorEntry
impl Sync for ColorEntry
impl Unpin for ColorEntry
impl UnsafeUnpin for ColorEntry
impl UnwindSafe for ColorEntry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.