Struct read_fonts::tables::colr::ColorIndex
source · #[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
source§impl<'a> SomeRecord<'a> for ColorIndex
impl<'a> SomeRecord<'a> for ColorIndex
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
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
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)