#[repr(C, packed(1))]pub struct ColorIndex {
pub palette_index: BigEndian<u16>,
pub alpha: BigEndian<F2Dot14>,
}
Expand description
ColorIndex record
Fields§
§palette_index: BigEndian<u16>
Index for a CPAL palette entry.
alpha: BigEndian<F2Dot14>
Alpha value.
Implementations§
Source§impl ColorIndex
impl ColorIndex
Trait Implementations§
Source§impl Clone for ColorIndex
impl Clone for ColorIndex
Source§fn clone(&self) -> ColorIndex
fn clone(&self) -> ColorIndex
Returns a copy 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 ColorIndex
impl Debug for ColorIndex
Source§impl FixedSize for ColorIndex
impl FixedSize for ColorIndex
Source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
Source§impl Hash for ColorIndex
impl Hash for ColorIndex
Source§impl Ord for ColorIndex
impl Ord for ColorIndex
Source§fn cmp(&self, other: &ColorIndex) -> Ordering
fn cmp(&self, other: &ColorIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColorIndex
impl PartialEq for ColorIndex
Source§impl PartialOrd for ColorIndex
impl PartialOrd for ColorIndex
impl AnyBitPattern for ColorIndex
impl Copy for ColorIndex
impl Eq for ColorIndex
impl StructuralPartialEq for ColorIndex
Auto Trait Implementations§
impl Freeze for ColorIndex
impl RefUnwindSafe for ColorIndex
impl Send for ColorIndex
impl Sync for ColorIndex
impl Unpin for ColorIndex
impl UnwindSafe for ColorIndex
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.